mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-14 10:40:34 +05:00
Avoid SMESH module GUI loading failure
This commit is contained in:
parent
304f30c5ca
commit
b864c4bb3b
@ -103,7 +103,9 @@ void SMESH_Gen_i::RemoveLastFromPythonScript (int theStudyID)
|
|||||||
void SMESH_Gen_i::AddToCurrentPyScript (const TCollection_AsciiString& theString)
|
void SMESH_Gen_i::AddToCurrentPyScript (const TCollection_AsciiString& theString)
|
||||||
{
|
{
|
||||||
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
|
||||||
aSMESHGen->AddToPythonScript(aSMESHGen->GetCurrentStudy()->StudyId(), theString);
|
SALOMEDS::Study_ptr aStudy = aSMESHGen->GetCurrentStudy();
|
||||||
|
if (aStudy->_is_nil()) return;
|
||||||
|
aSMESHGen->AddToPythonScript(aStudy->StudyId(), theString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user