mapeditor.cpp
branchrelease-1-12-maintained
changeset 49 d5edb0ae8f2a
parent 41 6f28020b33d1
child 53 1532402be6c2
     1.1 --- a/mapeditor.cpp	Thu Aug 07 14:41:17 2008 +0000
     1.2 +++ b/mapeditor.cpp	Sun Oct 05 09:15:00 2008 +0000
     1.3 @@ -3685,6 +3685,17 @@
     1.4  	if (bo)
     1.5  	{
     1.6  		par=(BranchObj*)(bo->getParObj());
     1.7 +
     1.8 +		// Don't use this on mapcenter
     1.9 +		if (!par) return;
    1.10 +
    1.11 +		// Check if we have childs at all to keep
    1.12 +		if (bo->countBranches()==0) 
    1.13 +		{
    1.14 +			deleteSelection();
    1.15 +			return;
    1.16 +		}
    1.17 +
    1.18  		QPointF p=bo->getRelPos();
    1.19  		saveStateChangingPart(
    1.20  			bo->getParObj(),