diff -r ec8c73975c1a -r 31c6ce8efbc7 branchobj.cpp --- a/branchobj.cpp Thu Mar 24 20:48:58 2005 +0000 +++ b/branchobj.cpp Thu Mar 24 21:10:38 2005 +0000 @@ -202,17 +202,18 @@ if (off==0) { link2ParPos=false; - parObj=o; + // parObj=o; } else { link2ParPos=true; - if (off>0) - parObj=o->getParObj(); - else - parObj=o->getParObj(); - parObj=o; + // if (off>0) + // parObj=o->getParObj(); + // else + // parObj=o->getParObj(); + // parObj=o; } + parObj=o; depth=parObj->getDepth()+1; @@ -273,6 +274,7 @@ parObjTmpBuf=NULL; depth=parObj->getDepth()+1; setLinkStyle (getDefLinkStyle() ); + updateLink(); } } @@ -380,7 +382,7 @@ fio->setVisibility (v); } } // depth <= toDepth - move (absPos.x(), absPos.y() ); + //FIXME move (absPos.x(), absPos.y() ); requestReposition(); } @@ -569,7 +571,7 @@ void BranchObj::positionBBox() { - // FIXME testing + // FIXME testing (optimization) /* QString h=getHeading(); if (!h.isEmpty()) @@ -761,7 +763,7 @@ } else areaAttr=""; - s=beginElement ("branch" +scrolledAttr +posAttr +urlAttr +vymLinkAttr +frameAttr +areaAttr); + s=beginElement ("branch" +scrolledAttr +posAttr +urlAttr +vymLinkAttr +frameAttr +areaAttr ); incIndent(); // save heading @@ -891,6 +893,7 @@ newbo->setVisibility (false); else newbo->setVisibility(visible); + newbo->updateLink(); requestReposition(); return newbo; } @@ -907,6 +910,7 @@ newbo->setVisibility (false); else newbo->setVisibility(bo->visible); + newbo->updateLink(); requestReposition(); return newbo; }