1.1 --- a/frameobj.cpp Sun Jan 30 12:58:47 2005 +0000
1.2 +++ b/frameobj.cpp Fri Jun 16 08:27:11 2006 +0000
1.3 @@ -121,12 +121,9 @@
1.4 rectFrame->setZ(Z_FRAME);
1.5 rectFrame->setBrush( QColor("white") );
1.6 rectFrame->setPen( QPen(QColor("black") ));
1.7 - if (visible)
1.8 - rectFrame->show();
1.9 - else
1.10 - rectFrame->hide();
1.11 break;
1.12 }
1.13 + setVisibility (visible);
1.14 }
1.15 }
1.16
1.17 @@ -141,6 +138,16 @@
1.18 void FrameObj::setVisibility (bool v)
1.19 {
1.20 MapObj::setVisibility(v);
1.21 - setFrameType (type); // changes on visibility depend on type...
1.22 + switch (type)
1.23 + {
1.24 + case NoFrame:
1.25 + break;
1.26 + case Rectangle:
1.27 + if (visible)
1.28 + rectFrame->show();
1.29 + else
1.30 + rectFrame->hide();
1.31 + break;
1.32 + }
1.33 }
1.34