From 67331f980b0701737af2aa7214a637f569391833 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 29 Nov 2013 13:43:54 +0000 Subject: [PATCH] Profile object creation. --- src/HYDROCurveCreator/CurveCreator_Widget.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/HYDROCurveCreator/CurveCreator_Widget.cxx b/src/HYDROCurveCreator/CurveCreator_Widget.cxx index fd66a6b6..c707f80a 100644 --- a/src/HYDROCurveCreator/CurveCreator_Widget.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Widget.cxx @@ -383,6 +383,16 @@ void CurveCreator_Widget::setObjectsSelected(const AIS_ListOfInteractive& theLis } } +//======================================================================= +// function: reset +// purpose: reset the widget viewer, close local context, clear selection +//======================================================================= +void CurveCreator_Widget::reset() +{ + // all local contexts should be closed if the viewer is not more used + setLocalPointContext( false, true ); +} + //======================================================================= // function: getUniqSectionName // purpose: return unique section name -- 2.39.2