1.1 --- a/xml.cpp Wed Apr 25 16:02:54 2007 +0000
1.2 +++ b/xml.cpp Wed May 02 15:31:20 2007 +0000
1.3 @@ -422,6 +422,8 @@
1.4
1.5 bool mapBuilderHandler::readFrameAttr (const QXmlAttributes& a)
1.6 {
1.7 + bool ok;
1.8 + int x;
1.9 if (lastOO)
1.10 {
1.11 if (!a.value( "frameType").isEmpty() )
1.12 @@ -430,6 +432,16 @@
1.13 lastOO->setFramePenColor (a.value("penColor"));
1.14 if (!a.value( "brushColor").isEmpty() )
1.15 lastOO->setFrameBrushColor (a.value("brushColor"));
1.16 + if (!a.value( "padding").isEmpty() )
1.17 + {
1.18 + x=a.value("padding").toInt(&ok);
1.19 + if (ok) lastOO->setFramePadding(x);
1.20 + }
1.21 + if (!a.value( "borderWidth").isEmpty() )
1.22 + {
1.23 + x=a.value("borderWidth").toInt(&ok);
1.24 + if (ok) lastOO->setFrameBorderWidth(x);
1.25 + }
1.26 }
1.27 return true;
1.28 }