From: vsr Date: Fri, 15 Sep 2006 12:22:28 +0000 (+0000) Subject: Fix a bug: IsInCurrentView() method returns wrong value X-Git-Tag: For_GUI_AutoTools X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=79677d7e5d84ec32a43a863dfe32d76b9e4218f0;p=modules%2Fgui.git Fix a bug: IsInCurrentView() method returns wrong value --- diff --git a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx index ccf9b841a..9f8e1e20c 100644 --- a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx +++ b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx @@ -554,7 +554,7 @@ public: SALOME_View* view = dynamic_cast( window->getViewManager()->getViewModel() ); if ( view ) { SALOME_Prs* aPrs = view->CreatePrs( myEntry ); - myResult = aPrs->IsNull(); + myResult = !aPrs->IsNull(); } } }