branchobj.cpp
changeset 730 0594d7b7099d
parent 723 11f9124c1cca
child 735 84ae10f6e3a3
     1.1 --- a/branchobj.cpp	Mon Dec 08 16:57:33 2008 +0000
     1.2 +++ b/branchobj.cpp	Tue Dec 09 16:44:54 2008 +0000
     1.3 @@ -350,17 +350,18 @@
     1.4  		standardFlags->setVisibility(v);
     1.5  		LinkableMapObj::setVisibility (v);
     1.6  		
     1.7 +		int i;
     1.8 +		for (i=0; i<floatimage.size(); ++i)
     1.9 +			floatimage.at(i)->setVisibility (v);
    1.10 +		for (i=0; i<xlink.size(); ++i)	
    1.11 +			xlink.at(i)->setVisibility ();	
    1.12 +
    1.13  		// Only change children, if I am not scrolled
    1.14  		if (!scrolled && (depth < toDepth))
    1.15  		{
    1.16  			// Now go recursivly through all children
    1.17 -			int i;
    1.18  			for (i=0; i<branch.size(); ++i)
    1.19  				branch.at(i)->setVisibility (v,toDepth);	
    1.20 -			for (i=0; i<floatimage.size(); ++i)
    1.21 -				floatimage.at(i)->setVisibility (v);
    1.22 -			for (i=0; i<xlink.size(); ++i)	
    1.23 -				xlink.at(i)->setVisibility ();	
    1.24  		}
    1.25      } // depth <= toDepth	
    1.26  	requestReposition();