Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
304f30c
)
Avoid SMESH module GUI loading failure
author
jfa
<jfa@opencascade.com>
Mon, 28 Mar 2005 14:26:59 +0000
(14:26 +0000)
committer
jfa
<jfa@opencascade.com>
Mon, 28 Mar 2005 14:26:59 +0000
(14:26 +0000)
src/SMESH_I/SMESH_Gen_i_DumpPython.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Gen_i_DumpPython.cxx
b/src/SMESH_I/SMESH_Gen_i_DumpPython.cxx
index adfb83764f822cf319a938ff38722d3476fc4e8c..9e5f3ed9fc61a9fce3c33546aaf61aead981af84 100644
(file)
--- a/
src/SMESH_I/SMESH_Gen_i_DumpPython.cxx
+++ b/
src/SMESH_I/SMESH_Gen_i_DumpPython.cxx
@@
-103,7
+103,9
@@
void SMESH_Gen_i::RemoveLastFromPythonScript (int theStudyID)
void SMESH_Gen_i::AddToCurrentPyScript (const TCollection_AsciiString& theString)
{
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);
}