mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-16 22:30:33 +05:00
Patch on regression that was introduced by fix on Bug PAL7444
This commit is contained in:
parent
812bdd937f
commit
6c02d41866
@ -146,7 +146,10 @@ long SMESH_Gen_i::GetVolumeGroupsTag()
|
|||||||
|
|
||||||
bool SMESH_Gen_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
|
bool SMESH_Gen_i::CanPublishInStudy(CORBA::Object_ptr theIOR)
|
||||||
{
|
{
|
||||||
if(MYDEBUG) MESSAGE("CanPublishInStudy");
|
if(MYDEBUG) MESSAGE("CanPublishInStudy - "<<!CORBA::is_nil(myCurrentStudy));
|
||||||
|
if(CORBA::is_nil(myCurrentStudy))
|
||||||
|
return false;
|
||||||
|
|
||||||
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_narrow(theIOR);
|
SMESH::SMESH_Mesh_var aMesh = SMESH::SMESH_Mesh::_narrow(theIOR);
|
||||||
if( !aMesh->_is_nil() )
|
if( !aMesh->_is_nil() )
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user