diff -r f9ed11f2ab60 -r 4ee885c3b72c ornamentedobj.cpp --- a/ornamentedobj.cpp Wed Mar 15 13:53:54 2006 +0000 +++ b/ornamentedobj.cpp Mon Mar 27 20:21:58 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;