From 6bddd941faa19f32e11a9692c89e2c2c2cc12a5d Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 29 Jan 2015 16:14:51 +0300 Subject: [PATCH] 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] --- src/XGUI/XGUI_Displayer.h | 5 +++++ 1 file changed, 5 insertions(+) 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(); -- 2.39.2