mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-01 04:10:33 +05:00
Fix for Bug11695
Porting problem: CRASH after import of "ex15_cyl2geometry.py".
This commit is contained in:
parent
1e6031e233
commit
146fbd48fb
@ -609,8 +609,32 @@ SMESH_Swig::SetName(const char* theEntry,
|
|||||||
void SMESH_Swig::SetMeshIcon(const char* theMeshEntry,
|
void SMESH_Swig::SetMeshIcon(const char* theMeshEntry,
|
||||||
const bool theIsComputed)
|
const bool theIsComputed)
|
||||||
{
|
{
|
||||||
SALOMEDS::SObject_var aMeshSO = myStudy->FindObjectID(theMeshEntry);
|
class TEvent: public SALOME_Event
|
||||||
if(!aMeshSO->_is_nil())
|
{
|
||||||
if(_PTR(SObject) aMesh = ClientFactory::SObject(aMeshSO))
|
SALOMEDS::Study_var myStudy;
|
||||||
SMESH::ModifiedMesh(aMesh,theIsComputed);
|
std::string myMeshEntry;
|
||||||
|
bool myIsComputed;
|
||||||
|
public:
|
||||||
|
TEvent(const SALOMEDS::Study_var& theStudy,
|
||||||
|
const std::string& theMeshEntry,
|
||||||
|
const bool theIsComputed):
|
||||||
|
myStudy(theStudy),
|
||||||
|
myMeshEntry(theMeshEntry),
|
||||||
|
myIsComputed(theIsComputed)
|
||||||
|
{}
|
||||||
|
|
||||||
|
virtual
|
||||||
|
void
|
||||||
|
Execute()
|
||||||
|
{
|
||||||
|
SALOMEDS::SObject_var aMeshSO = myStudy->FindObjectID(myMeshEntry.c_str());
|
||||||
|
if(!aMeshSO->_is_nil())
|
||||||
|
if(_PTR(SObject) aMesh = ClientFactory::SObject(aMeshSO))
|
||||||
|
SMESH::ModifiedMesh(aMesh,myIsComputed);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
ProcessVoidEvent(new TEvent(myStudy,
|
||||||
|
theMeshEntry,
|
||||||
|
theIsComputed));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user