From ddb3b13cd63d457776a9b9e443b877c293cd684b Mon Sep 17 00:00:00 2001 From: mkr Date: Wed, 13 Jul 2005 09:50:35 +0000 Subject: [PATCH] Add method for nullify myInitalViewFrame variable in SUPERVGUI class to avoid using this view frame once more, it is using after add any node into first new dataflow in study. --- src/SUPERVGUI/SUPERVGUI.h | 7 +++++++ src/SUPERVGUI/SUPERVGUI_Service.cxx | 1 + 2 files changed, 8 insertions(+) diff --git a/src/SUPERVGUI/SUPERVGUI.h b/src/SUPERVGUI/SUPERVGUI.h index 12d6986..d5239a9 100644 --- a/src/SUPERVGUI/SUPERVGUI.h +++ b/src/SUPERVGUI/SUPERVGUI.h @@ -110,6 +110,13 @@ class SUPERVGUI: public SalomeApp_Module { QMap getInterfaceNameMap() const; + /*! + * \brief The method nullify myInitalViewFrame variable + * to avoid using this view frame once more, it is using + * after add any node into first new dataflow in study. + */ + void nullifyInitialVF() { if ( myInitialViewFrame ) myInitialViewFrame = 0; } + signals: void KillMainThread(bool theValue); diff --git a/src/SUPERVGUI/SUPERVGUI_Service.cxx b/src/SUPERVGUI/SUPERVGUI_Service.cxx index f04f0ce..0c9f542 100644 --- a/src/SUPERVGUI/SUPERVGUI_Service.cxx +++ b/src/SUPERVGUI/SUPERVGUI_Service.cxx @@ -1024,6 +1024,7 @@ void SUPERVGUI_Service::addNode( SUPERV::CNode_var theNode, SUPERV::INode_var th aMain->addControlNode( theNode, SUPERV::CNode::_narrow( theEndNode ), true ); else aMain->addComputeNode( theNode ); + aSupMod->nullifyInitialVF(); } } -- 2.39.2