From 549761d01a4af8666180e2eb2ee8d49a7dc75931 Mon Sep 17 00:00:00 2001 From: Vadim Kurland Date: Fri, 6 Aug 2010 01:24:16 +0000 Subject: [PATCH] fix crash that only seems to happen in unit tests --- build_num | 2 +- src/gui/ObjectManipulator.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build_num b/build_num index 4fbc651d7..2519f339b 100644 --- a/build_num +++ b/build_num @@ -1 +1 @@ -#define BUILD_NUM 3212 +#define BUILD_NUM 3213 diff --git a/src/gui/ObjectManipulator.cpp b/src/gui/ObjectManipulator.cpp index 76b991f9d..e64c47829 100644 --- a/src/gui/ObjectManipulator.cpp +++ b/src/gui/ObjectManipulator.cpp @@ -852,6 +852,8 @@ void ObjectManipulator::getMenuState(bool haveMoveTargets, FWObject *current_library = getCurrentLib(); + if (getCurrentObjectTree()==NULL) return; + vector so = getCurrentObjectTree()->getSelectedObjects(); for (vector::iterator i=so.begin(); i!=so.end(); ++i) {