diff -r 7a96bd401351 -r 9481068d6f6a frameobj.cpp --- a/frameobj.cpp Sun Jan 30 12:58:47 2005 +0000 +++ b/frameobj.cpp Mon Apr 10 11:21:35 2006 +0000 @@ -121,12 +121,9 @@ rectFrame->setZ(Z_FRAME); rectFrame->setBrush( QColor("white") ); rectFrame->setPen( QPen(QColor("black") )); - if (visible) - rectFrame->show(); - else - rectFrame->hide(); break; } + setVisibility (visible); } } @@ -141,6 +138,16 @@ void FrameObj::setVisibility (bool v) { MapObj::setVisibility(v); - setFrameType (type); // changes on visibility depend on type... + switch (type) + { + case NoFrame: + break; + case Rectangle: + if (visible) + rectFrame->show(); + else + rectFrame->hide(); + break; + } }