1.1 --- a/ornamentedobj.cpp Wed Mar 15 13:53:54 2006 +0000
1.2 +++ b/ornamentedobj.cpp Tue Apr 11 14:34:14 2006 +0000
1.3 @@ -55,6 +55,7 @@
1.4 standardFlags->setName ("standardFlags");
1.5
1.6 hideExport=false;
1.7 + hidden=false;
1.8
1.9 url="";
1.10 vymLink="";
1.11 @@ -309,14 +310,18 @@
1.12
1.13 void OrnamentedObj::setHideInExport(bool b)
1.14 {
1.15 - hideExport=b;
1.16 - if (b)
1.17 - systemFlags->activate("hideInExport");
1.18 - else
1.19 - systemFlags->deactivate("hideInExport");
1.20 - calcBBoxSize();
1.21 - positionBBox();
1.22 - requestReposition();
1.23 + if (parObj)
1.24 + {
1.25 + // Don't allow to MapCenter to be hidden
1.26 + hideExport=b;
1.27 + if (b)
1.28 + systemFlags->activate("hideInExport");
1.29 + else
1.30 + systemFlags->deactivate("hideInExport");
1.31 + calcBBoxSize();
1.32 + positionBBox();
1.33 + requestReposition();
1.34 + }
1.35 }
1.36
1.37 bool OrnamentedObj::hideInExport()
1.38 @@ -324,6 +329,11 @@
1.39 return hideExport;
1.40 }
1.41
1.42 +bool OrnamentedObj::isHidden()
1.43 +{
1.44 + return hidden;
1.45 +}
1.46 +
1.47 QString OrnamentedObj::getOrnAttr()
1.48 {
1.49 QString posAttr;