diff -r db0ec4bcf416 -r ed5b407975b3 linkablemapobj.cpp --- a/linkablemapobj.cpp Mon Apr 20 10:42:05 2009 +0000 +++ b/linkablemapobj.cpp Thu Apr 23 12:15:31 2009 +0000 @@ -59,7 +59,6 @@ { model=NULL; - depth=-1; childObj=NULL; parObj=NULL; parObjTmpBuf=NULL; @@ -212,6 +211,7 @@ //return UndefinedStyle; } Style ls=model->getMapLinkStyle(); + int depth=treeItem->depth(); if (depth==0) return UndefinedStyle; switch (ls) { @@ -360,7 +360,7 @@ break; default: break; - } // switch (style) + } } QColor LinkableMapObj::getLinkColor() @@ -577,7 +577,7 @@ num=part.right(part.length() - 3); if (typ=="mc:") { - if (depth>0) + if (treeItem->depth()>0) return false; // in a subtree there is no center else break; @@ -621,11 +621,6 @@ return orientation; } -int LinkableMapObj::getDepth() -{ - return depth; -} - QPointF LinkableMapObj::getRandPos() { // Choose a random position with given distance to parent: