]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for Bug GVIEW10976
authorapo <apo@opencascade.com>
Mon, 19 Dec 2005 13:10:53 +0000 (13:10 +0000)
committerapo <apo@opencascade.com>
Mon, 19 Dec 2005 13:10:53 +0000 (13:10 +0000)
  wrong loading with 2 studies

src/VISU_I/VISU_Result_i.cc

index fa77bb87fe021497e64d213107194afb102f4775..8ca0c2f71b497b214c7d907bda0ba2ceee9be668 100644 (file)
@@ -123,8 +123,12 @@ namespace VISU
       while (SUIT_Application* aSApp = anIter.current()) {
        if(SalomeApp_Application* anApp = dynamic_cast<SalomeApp_Application*>(aSApp)){
          if(SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(anApp->activeStudy())) {
-           myResult = aStudy->studyDS();
-           break;
+           if(_PTR(Study) aStudyDS = aStudy->studyDS()){
+             if(aStudyDS->StudyId() == myStudyId){
+               myResult = aStudy->studyDS();
+               break;
+             }
+           }
          }
        }
        ++anIter;