diff -r bef71af3f6ab -r d4b49c6c6069 xml-vym.cpp --- a/xml-vym.cpp Mon Jan 14 16:27:00 2008 +0000 +++ b/xml-vym.cpp Wed Jan 16 15:45:19 2008 +0000 @@ -34,7 +34,6 @@ laststate = StateInit; stateStack.clear(); stateStack.append(StateInit); - branchDepth=0; htmldata=""; isVymPart=false; return true; @@ -221,7 +220,6 @@ } else lastBranch->clear(); - branchDepth=1; readBranchAttr (atts); } else if (eName=="floatimage") { @@ -234,7 +232,6 @@ } else if ( eName == "branch" && state == StateMapCenter) { state=StateBranch; - branchDepth=1; lastBranch->addBranch(); lastBranch=lastBranch->getLastBranch(); readBranchAttr (atts); @@ -258,7 +255,6 @@ { lastBranch->addBranch(); lastBranch=lastBranch->getLastBranch(); - branchDepth++; readBranchAttr (atts); } else if ( eName == "html" && state == StateHtmlNote ) { @@ -425,7 +421,7 @@ return false; // Couldn't read relPos } } - if (!a.value( "absPosX").isEmpty() && loadMode==NewMap && branchDepth<2) + if (!a.value( "absPosX").isEmpty() && loadMode==NewMap ) { if (!a.value( "absPosY").isEmpty() ) {