mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-21 02:59:40 +05:00
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:
parent
78f6bcf182
commit
84d055c1b3
@ -3878,7 +3878,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
int* anAutoColor = new int[ size ];
|
int* anAutoColor = new int[ size ];
|
||||||
aDataset->ReadFromDisk( anAutoColor );
|
aDataset->ReadFromDisk( anAutoColor );
|
||||||
aDataset->CloseOnDisk();
|
aDataset->CloseOnDisk();
|
||||||
myNewMeshImpl->SetAutoColor( (bool)anAutoColor[0] );
|
myNewMeshImpl->GetImpl().SetAutoColor( (bool)anAutoColor[0] );
|
||||||
}
|
}
|
||||||
|
|
||||||
// try to read and set reference to shape
|
// try to read and set reference to shape
|
||||||
|
Loading…
Reference in New Issue
Block a user