diff -r 6f28020b33d1 -r 6cd53d63956f mapeditor.cpp --- a/mapeditor.cpp Thu Jul 17 12:55:24 2008 +0000 +++ b/mapeditor.cpp Wed Nov 12 11:15:37 2008 +0000 @@ -3685,6 +3685,17 @@ if (bo) { par=(BranchObj*)(bo->getParObj()); + + // Don't use this on mapcenter + if (!par) return; + + // Check if we have childs at all to keep + if (bo->countBranches()==0) + { + deleteSelection(); + return; + } + QPointF p=bo->getRelPos(); saveStateChangingPart( bo->getParObj(),