From 9e63339f331534e04724dcad9f5cd8555adf1a2e Mon Sep 17 00:00:00 2001 From: dbv Date: Wed, 17 Jun 2015 16:16:41 +0300 Subject: [PATCH] Selection restore fix. --- src/XGUI/XGUI_Displayer.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index cae0e29e2..fae50aa55 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -46,8 +46,6 @@ const int MOUSE_SENSITIVITY_IN_PIXEL = 10; ///< defines the local context mouse selection sensitivity -#define DEBUG_CRASH_RESTORE_SELECTION - //#define DEBUG_ACTIVATE_OBJECTS //#define DEBUG_DEACTIVATE //#define DEBUG_ACTIVATE_AIS @@ -395,10 +393,7 @@ void XGUI_Displayer::setSelected(const QList& theValues, foreach (ModuleBase_ViewerPrs aPrs, theValues) { const TopoDS_Shape& aShape = aPrs.shape(); if (!aShape.IsNull()) { -#ifdef DEBUG_CRASH_RESTORE_SELECTION -#else aContext->AddOrRemoveSelected(aShape, false); -#endif } else { ObjectPtr anObject = aPrs.object(); ResultPtr aResult = std::dynamic_pointer_cast(anObject); -- 2.39.2