mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-26 00:30:49 +05:00
Fix for IPAL12128 : CRASH after trying to run dataflow from the restored study with SALOME started with "--gui" key.
This commit is contained in:
parent
aeeebe32c2
commit
d9dd5e1f74
@ -108,8 +108,12 @@ void GEOM_Superv_i::SetStudyID( CORBA::Long theId )
|
|||||||
SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
|
SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
|
||||||
if ( !CORBA::is_nil(aSession) ) {
|
if ( !CORBA::is_nil(aSession) ) {
|
||||||
int aStudyID = aSession->GetActiveStudyId();
|
int aStudyID = aSession->GetActiveStudyId();
|
||||||
if ( theId != aStudyID ) MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
|
if ( theId != aStudyID && aStudyID > 0) { // mkr : IPAL12128
|
||||||
myStudyID = aStudyID;
|
MESSAGE("Warning : given study ID theId="<<theId<<" is wrong and will be replaced by the value "<<aStudyID);
|
||||||
|
myStudyID = aStudyID;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
myStudyID = theId; // mkr : IPAL12128
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user