]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
UpdateView method doesn't work from python. imn/IMACS
authorrnv <rnv@opencascade.com>
Mon, 2 Oct 2017 10:12:00 +0000 (13:12 +0300)
committerrnv <rnv@opencascade.com>
Mon, 2 Oct 2017 10:12:00 +0000 (13:12 +0300)
src/SALOME_SWIG/SALOMEGUI_Swig.cxx

index b56a92be2e0e4019bcf15c54b8dc91e25c628084..474eb1dbb8e139564dcb1a6afb2ac6239a8c9ee9 100644 (file)
@@ -625,7 +625,7 @@ public:
     if ( LightApp_Application* anApp = getApplication() ) {
       SUIT_ViewWindow* window = anApp->desktop()->activeWindow();
       if ( window ) {
-        SALOME_View* view = dynamic_cast<SALOME_View*>( window->getViewManager()->getActiveView() );
+        SALOME_View* view = dynamic_cast<SALOME_View*>( window->getViewManager()->getViewModel() );
         if ( view ) {
           SALOME_Prs* aPrs = view->CreatePrs( myEntry.toLatin1() );
           myResult = !aPrs->IsNull();
@@ -653,7 +653,7 @@ void SALOMEGUI_Swig::UpdateView()
       if ( LightApp_Application* anApp = getApplication() ) {
         SUIT_ViewWindow* window = anApp->desktop()->activeWindow();
         if ( window ) {
-          SALOME_View* view = dynamic_cast<SALOME_View*>( window->getViewManager()->getActiveView() );
+          SALOME_View* view = dynamic_cast<SALOME_View*>( window->getViewManager()->getViewModel() );
           if ( view )
             view->Repaint();
         }