From bf8675a777c345d20359a2ca556b729a1cd06899 Mon Sep 17 00:00:00 2001 From: mpa Date: Thu, 19 Jan 2017 10:40:03 +0300 Subject: [PATCH] fix problem with getting study by its reference. --- idl/SALOME_Session.idl | 2 +- src/SALOMEDS/SALOMEDS.cxx | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/idl/SALOME_Session.idl b/idl/SALOME_Session.idl index fc26d2d47..5715977b1 100644 --- a/idl/SALOME_Session.idl +++ b/idl/SALOME_Session.idl @@ -51,7 +51,7 @@ module SALOME It can be: -# asleep : no running study - -# running : one or more running studies + -# running : one running study */ SessionState state ; diff --git a/src/SALOMEDS/SALOMEDS.cxx b/src/SALOMEDS/SALOMEDS.cxx index 23e4f3a20..432444085 100644 --- a/src/SALOMEDS/SALOMEDS.cxx +++ b/src/SALOMEDS/SALOMEDS.cxx @@ -118,10 +118,9 @@ extern "C" namingService.Register(aStudy, "/Study"); // Assign the value of the IOR in the study->root - if ( aStudy_i->GetImpl()->GetTransientReference().empty() ) { - CORBA::String_var IORStudy = orb->object_to_string(aStudy); - aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in()); - } + CORBA::String_var IORStudy = orb->object_to_string(aStudy); + aStudy_i->GetImpl()->SetTransientReference((char*)IORStudy.in()); + aStudy_i->GetImpl()->GetDocument()->SetModified(false); aStudy_i->_remove_ref(); } } -- 2.39.2