From 72bfbb26b01498c7998dceafe42de5f99dbc8f8b Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 19 Dec 2005 13:10:53 +0000 Subject: [PATCH] Fix for Bug GVIEW10976 wrong loading with 2 studies --- src/VISU_I/VISU_Result_i.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index fa77bb87..8ca0c2f7 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -123,8 +123,12 @@ namespace VISU while (SUIT_Application* aSApp = anIter.current()) { if(SalomeApp_Application* anApp = dynamic_cast(aSApp)){ if(SalomeApp_Study* aStudy = dynamic_cast(anApp->activeStudy())) { - myResult = aStudy->studyDS(); - break; + if(_PTR(Study) aStudyDS = aStudy->studyDS()){ + if(aStudyDS->StudyId() == myStudyId){ + myResult = aStudy->studyDS(); + break; + } + } } } ++anIter; -- 2.39.2