linkablemapobj.cpp
changeset 786 6269016c9905
parent 785 5987f9f15bac
child 790 133e2ed6b9c5
     1.1 --- a/linkablemapobj.cpp	Mon Aug 03 10:42:12 2009 +0000
     1.2 +++ b/linkablemapobj.cpp	Thu Aug 06 10:42:17 2009 +0000
     1.3 @@ -176,7 +176,7 @@
     1.4  	return rightPad;
     1.5  }
     1.6  
     1.7 -LinkableMapObj::Style LinkableMapObj::getDefLinkStyle ()
     1.8 +LinkableMapObj::Style LinkableMapObj::getDefLinkStyle (TreeItem *parent)
     1.9  {
    1.10  	VymModel *model=treeItem->getModel();
    1.11  	if (!model)
    1.12 @@ -185,7 +185,7 @@
    1.13  		//return UndefinedStyle;
    1.14  	}
    1.15  	Style ls=model->getMapLinkStyle();
    1.16 -	int depth=treeItem->depth();
    1.17 +	int depth=1+parent->depth();
    1.18  	if (depth==0) return UndefinedStyle;
    1.19  	switch (ls)
    1.20  	{
    1.21 @@ -215,7 +215,7 @@
    1.22  
    1.23  void LinkableMapObj::setLinkStyle(Style newstyle)
    1.24  {
    1.25 -	//if (newstyle=style) return; FIXME-3
    1.26 +	//if (newstyle==style) return; FIXME-3
    1.27  	delLink();
    1.28  		
    1.29  	style=newstyle;