From: nds Date: Thu, 29 Jan 2015 13:14:51 +0000 (+0300) Subject: Issue #389 Undo/redo problem on sketch line creation X-Git-Tag: V_1.0.0~13^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6bddd941faa19f32e11a9692c89e2c2c2cc12a5d;p=modules%2Fshaper.git Issue #389 Undo/redo problem on sketch line creation Code improvement to apply an activation for one object. It avoids the code duplication in activateObjects() and activate()[currently commented] --- diff --git a/src/XGUI/XGUI_Displayer.h b/src/XGUI/XGUI_Displayer.h index c1aded1fa..85900ddb3 100644 --- a/src/XGUI/XGUI_Displayer.h +++ b/src/XGUI/XGUI_Displayer.h @@ -206,6 +206,11 @@ class XGUI_EXPORT XGUI_Displayer */ void redisplay(ObjectPtr theObject, bool isUpdateViewer = true); + /// Activates the interactive object in the local context. + /// \param theIO an interactive object + /// \param theModes - modes on which it has to be activated (can be empty) + void activate(const Handle(AIS_InteractiveObject)& theIO, const QIntList& theModes) const; + /// Opens local context. Does nothing if it is already opened. void openLocalContext();