vymmodel.cpp
changeset 816 3086ee01554a
parent 815 2881c4424190
child 819 8f987e376035
     1.1 --- a/vymmodel.cpp	Mon Dec 07 21:56:46 2009 +0000
     1.2 +++ b/vymmodel.cpp	Thu Dec 10 17:04:48 2009 +0000
     1.3 @@ -2339,11 +2339,20 @@
     1.4  	if (branch && dst)
     1.5  	{
     1.6  		unselect();
     1.7 -
     1.8 + 
     1.9  		emit (layoutAboutToBeChanged() );
    1.10  		BranchItem *branchpi=(BranchItem*)branch->parent();
    1.11  		// Remove at current position
    1.12  		int n=branch->childNum();
    1.13 +
    1.14 +/* FIXME-4 seg since 20091207, if ModelTest active. strange.
    1.15 +		// error occured if relinking branch to empty mainbranch
    1.16 +		cout<<"VM::relinkBranch:\n";
    1.17 +		cout<<"    b="<<branch->getHeadingStd()<<endl;
    1.18 +		cout<<"  dst="<<dst->getHeadingStd()<<endl;
    1.19 +		cout<<"  pos="<<pos<<endl;
    1.20 +		cout<<"   n1="<<n<<endl;
    1.21 +*/		
    1.22  		beginRemoveRows (index(branchpi),n,n);
    1.23  		branchpi->removeChild (n);
    1.24  		endRemoveRows();