diff -r f9ed11f2ab60 -r 68495946fe33 ornamentedobj.cpp --- a/ornamentedobj.cpp Wed Mar 15 13:53:54 2006 +0000 +++ b/ornamentedobj.cpp Tue Apr 11 14:34:14 2006 +0000 @@ -55,6 +55,7 @@ standardFlags->setName ("standardFlags"); hideExport=false; + hidden=false; url=""; vymLink=""; @@ -309,14 +310,18 @@ void OrnamentedObj::setHideInExport(bool b) { - hideExport=b; - if (b) - systemFlags->activate("hideInExport"); - else - systemFlags->deactivate("hideInExport"); - calcBBoxSize(); - positionBBox(); - requestReposition(); + if (parObj) + { + // Don't allow to MapCenter to be hidden + hideExport=b; + if (b) + systemFlags->activate("hideInExport"); + else + systemFlags->deactivate("hideInExport"); + calcBBoxSize(); + positionBBox(); + requestReposition(); + } } bool OrnamentedObj::hideInExport() @@ -324,6 +329,11 @@ return hideExport; } +bool OrnamentedObj::isHidden() +{ + return hidden; +} + QString OrnamentedObj::getOrnAttr() { QString posAttr;