From: eap Date: Tue, 26 Apr 2011 10:35:15 +0000 (+0000) Subject: 0021250: EDF 1817 SMESH: Salome crashes when activating smesh after opening a specifi... X-Git-Tag: V6_3_0b1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84d055c1b3949b08c539730b3c4bc954eed1c9ad;p=modules%2Fsmesh.git 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] ); --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 8ff2c08ff..018fadc51 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -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