1.1 --- a/xml-vym.cpp Tue Jan 15 13:06:59 2008 +0000
1.2 +++ b/xml-vym.cpp Wed Feb 27 16:09:06 2008 +0000
1.3 @@ -56,7 +56,7 @@
1.4 {
1.5 QColor col;
1.6 /* Testing
1.7 - cout << "startElement <"<< eName.ascii()
1.8 + cout << "startElement <"<< qPrintable(eName)
1.9 <<"> state="<<state
1.10 <<" laststate="<<stateStack.last()
1.11 <<" loadMode="<<loadMode
1.12 @@ -68,6 +68,9 @@
1.13 {
1.14 state = StateMap;
1.15
1.16 + if (loadMode==NewMap)
1.17 + model->clear(); // remove existing mapCenter
1.18 +
1.19 // Check version
1.20 if (!atts.value( "version").isEmpty() )
1.21 {
1.22 @@ -276,7 +279,7 @@
1.23 bool parseVYMHandler::endElement ( const QString&, const QString&, const QString &eName)
1.24 {
1.25 /* Testing
1.26 - cout << "endElement </" <<eName.ascii()
1.27 + cout << "endElement </" <<qPrintable(eName)
1.28 <<"> state=" <<state
1.29 <<" laststate=" <<laststate
1.30 <<" stateStack="<<stateStack.last()