xml-freemind.cpp
changeset 749 9ff332964015
parent 746 ee6b0f3a4c2f
child 750 ff3b01ce0960
     1.1 --- a/xml-freemind.cpp	Thu Mar 26 07:49:17 2009 +0000
     1.2 +++ b/xml-freemind.cpp	Wed Apr 01 15:06:57 2009 +0000
     1.3 @@ -5,12 +5,12 @@
     1.4  #include <QTextStream>
     1.5  #include <iostream>
     1.6  
     1.7 +#include "branchitem.h"
     1.8  #include "misc.h"
     1.9  #include "settings.h"
    1.10  #include "linkablemapobj.h"
    1.11  #include "version.h"
    1.12  
    1.13 -static BranchObj *lastBranch;
    1.14  //static FloatObj *lastFloat;
    1.15  static OrnamentedObj *lastOO;
    1.16  
    1.17 @@ -266,9 +266,10 @@
    1.18  bool parseFreemindHandler::readNodeAttr (const QXmlAttributes& a)
    1.19  {
    1.20  	lastOO=lastBranch;
    1.21 +	lastBranchItem=(BranchItem*)(lastBranch->getTreeItem() );
    1.22  
    1.23  	if (a.value( "FOLDED")=="true" )
    1.24 -		lastBranch->toggleScroll();
    1.25 +		lastBranchItem->toggleScroll();
    1.26  	if (!a.value( "TEXT").isEmpty() )
    1.27  		lastBranch->setHeading (a.value ("TEXT"));
    1.28