Salome HOME
0021250: EDF 1817 SMESH: Salome crashes when activating smesh after opening a specifi...
authoreap <eap@opencascade.com>
Tue, 26 Apr 2011 10:35:15 +0000 (10:35 +0000)
committereap <eap@opencascade.com>
Tue, 26 Apr 2011 10:35:15 +0000 (10:35 +0000)
In Load(), avoid infinite recursion via python dump
-            myNewMeshImpl->SetAutoColor( (bool)anAutoColor[0] );
+            myNewMeshImpl->GetImpl().SetAutoColor( (bool)anAutoColor[0] );

src/SMESH_I/SMESH_Gen_i.cxx

index 8ff2c08ff45c5cb5d0faae23099ae3208cb5f38b..018fadc5150d49675496286332789d73f4bd7e2f 100644 (file)
@@ -3878,7 +3878,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
             int* anAutoColor = new int[ size ];
             aDataset->ReadFromDisk( anAutoColor );
             aDataset->CloseOnDisk();
-            myNewMeshImpl->SetAutoColor( (bool)anAutoColor[0] );
+            myNewMeshImpl->GetImpl().SetAutoColor( (bool)anAutoColor[0] );
           }
 
           // try to read and set reference to shape