From: apo Date: Mon, 19 Dec 2005 13:10:53 +0000 (+0000) Subject: Fix for Bug GVIEW10976 X-Git-Tag: TG-D5-38-2003_D2005-20-12~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=72bfbb26b01498c7998dceafe42de5f99dbc8f8b;p=modules%2Fvisu.git Fix for Bug GVIEW10976 wrong loading with 2 studies --- 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;