]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Merge remote-tracking branch 'origin/imn/IMACS' into imn/IMACS_8_3_0 imn/IMACS_8_3_0
authorrnv <rnv@opencascade.com>
Thu, 23 Nov 2017 14:46:41 +0000 (17:46 +0300)
committerrnv <rnv@opencascade.com>
Thu, 23 Nov 2017 14:46:41 +0000 (17:46 +0300)
1  2 
src/PVViewer/PVViewer_GUIElements.cxx
src/SALOME_SWIG/SALOMEGUI_Swig.cxx

Simple merge
index bcd1e54adb8368ae41521dcacf05f8860f04e6da,474eb1dbb8e139564dcb1a6afb2ac6239a8c9ee9..9a066f180530adcc6c353d41f811b6f6340d802b
@@@ -624,11 -623,9 +624,11 @@@ public
    virtual void Execute()
    {
      if ( LightApp_Application* anApp = getApplication() ) {
 -      SUIT_ViewWindow* window = anApp->desktop()->activeWindow();
 +      SUIT_ViewManager* viewMgr = anApp->activeViewManager();
 +      if (!viewMgr) return;
 +      SUIT_ViewWindow* window = viewMgr->getActiveView();
        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();
@@@ -654,11 -651,9 +654,11 @@@ void SALOMEGUI_Swig::UpdateView(
      virtual void Execute()
      {
        if ( LightApp_Application* anApp = getApplication() ) {
 -        SUIT_ViewWindow* window = anApp->desktop()->activeWindow();
 +        SUIT_ViewManager* viewMgr = anApp->activeViewManager();
 +        if (!viewMgr) return;
 +        SUIT_ViewWindow* window = viewMgr->getActiveView();
          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();
          }