diff -r 598768200cfa -r 0b048b6bb6f4 xml.cpp --- a/xml.cpp Mon Apr 18 06:37:48 2005 +0000 +++ b/xml.cpp Thu Apr 21 19:14:38 2005 +0000 @@ -106,6 +106,15 @@ col.setNamedColor(atts.value("linkColor")); me->setLinkColor(col); } + if (!atts.value( "xlinkColor").isEmpty() ) + { + col.setNamedColor(atts.value("xlinkColor")); + me->setDefXLinkColor(col); + } + if (!atts.value( "xlinkWidth").isEmpty() ) + { + me->setDefXLinkWidth(atts.value("xlinkWidth").toInt ()); + } } } else if ( eName == "select" && state == StateMap ) { @@ -513,13 +522,19 @@ bool mapBuilderHandler::readXLinkAttr (const QXmlAttributes& a) { QColor col; + bool okx; XLinkObj *xlo=new XLinkObj (mc->getCanvas()); - if (!a.value( "xLinkColor").isEmpty() ) + if (!a.value( "color").isEmpty() ) { - col.setNamedColor(a.value("xLinkColor")); + col.setNamedColor(a.value("color")); xlo->setColor (col); } + if (!a.value( "width").isEmpty() ) + { + xlo->setWidth(a.value ("width").toInt (&okx, 10)); + } + if (!a.value( "beginBranch").isEmpty() ) { if (!a.value( "endBranch").isEmpty() )