0021250: EDF 1817 SMESH: Salome crashes when activating smesh after opening a specific study

In Load(), avoid infinite recursion via python dump
-            myNewMeshImpl->SetAutoColor( (bool)anAutoColor[0] );
+            myNewMeshImpl->GetImpl().SetAutoColor( (bool)anAutoColor[0] );
This commit is contained in:
eap 2011-04-26 10:35:15 +00:00
parent 78f6bcf182
commit 84d055c1b3

View 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