From: dbv Date: Wed, 17 Jun 2015 13:16:41 +0000 (+0300) Subject: Selection restore fix. X-Git-Tag: V_1.3.0~227 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e63339f331534e04724dcad9f5cd8555adf1a2e;p=modules%2Fshaper.git Selection restore fix. --- 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);