mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 02:00:35 +05:00
0021824: EDF 2364 SMESH : Unknown exception when dumping a Study
fix a bug in DumpPython()
This commit is contained in:
parent
880391e583
commit
9e8a1e664f
@ -674,12 +674,13 @@ TCollection_AsciiString GEOM_Engine::DumpPython(int theDocID,
|
||||
// add function description before dump
|
||||
if (!aCurScript.IsEmpty())
|
||||
{
|
||||
if ( aFunction->GetDriverGUID() == GEOM_Object::GetSubShapeID() )
|
||||
if ( aFunction->GetDriverGUID() == GEOM_Object::GetSubShapeID() &&
|
||||
aFuncScript.Length() > aCurScript.Length() )
|
||||
// avoid repeated SubShape...() command at the end
|
||||
if (aFuncScript.Location( aCurScript,
|
||||
aFuncScript.Length() - aCurScript.Length(),
|
||||
aFuncScript.Length()))
|
||||
continue;
|
||||
continue; // aCurScript is already at the end of aFuncScript
|
||||
aFuncScript += aCurScript;
|
||||
}
|
||||
if (isDumpCollected ) {
|
||||
|
Loading…
Reference in New Issue
Block a user