branch | release-1-12-maintained |
changeset 50 | 4b65c117aab7 |
parent 41 | 6f28020b33d1 |
child 53 | 1532402be6c2 |
1.1 --- a/mapeditor.cpp Thu Jul 17 12:55:24 2008 +0000 1.2 +++ b/mapeditor.cpp Mon Oct 06 09:18:11 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(),