X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FNETGENPlugin%2FNETGENPlugin_Hypothesis_i.cxx;h=2da2e821abcc68d5fb726d3013b2a6b6a858cff8;hb=9b3c975bfe536e12995c4ead7b301822539338c1;hp=5055b00e5a0d0ef2cb4ee58ae976d95252b2be4b;hpb=03ed7cce3eb1b8fb03fc38dce70108263763407e;p=plugins%2Fnetgenplugin.git diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx index 5055b00..2da2e82 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis_i.cxx @@ -311,9 +311,13 @@ CORBA::Double NETGENPlugin_Hypothesis_i::GetNbSegPerRadius() void NETGENPlugin_Hypothesis_i::SetLocalSizeOnShape(GEOM::GEOM_Object_ptr GeomObj, CORBA::Double localSize) + throw (SALOME::SALOME_Exception) { string entry; entry = GeomObj->GetStudyEntry(); + if ( entry.empty() ) + THROW_SALOME_CORBA_EXCEPTION( "SetLocalSizeOnShape(), shape is not published in study!", + SALOME::BAD_PARAM ); SetLocalSizeOnEntry(entry.c_str(), localSize); }