branchobj.cpp
changeset 814 31de6677aa96
parent 804 14f2b1b15242
child 815 2881c4424190
     1.1 --- a/branchobj.cpp	Tue Dec 01 11:06:15 2009 +0000
     1.2 +++ b/branchobj.cpp	Thu Dec 03 22:32:24 2009 +0000
     1.3 @@ -141,18 +141,20 @@
     1.4  	parObj=bo;
     1.5  
     1.6  	setLinkStyle (dst->getDefLinkStyle (dsti));
     1.7 -
     1.8 + 
     1.9  	// Move temporary to new position at destination
    1.10  	// Usually the positioning would be done by reposition(),
    1.11  	// but then also the destination branch would "Jump" around...
    1.12  	// Better just do it approximately
    1.13 -	if (parObj->getTreeItem()->depth()==0)	
    1.14 +	cout << "BO::setTmp  d="<<dsti->depth();
    1.15 +	if (dsti->depth()==0)	
    1.16  	{	// new parent is a mapcenter
    1.17  		Vector v= ( m - bo->getChildPos());
    1.18  		if (v.x()<0) v.setX( v.x()-bbox.width() );
    1.19  		v.normalize();
    1.20  		v.scale (100);
    1.21  		move2RelPos (v.toQPointF());
    1.22 +		cout << "  v="<<v<<endl;
    1.23  	} else
    1.24  	{	
    1.25  		qreal y;