From: mpa Date: Tue, 17 Mar 2015 07:32:36 +0000 (+0300) Subject: 0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for... X-Git-Tag: V7_6_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd3f6ee54250b5286421d707b3e5cd84c979b397;p=modules%2Fgeom.git 0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for SMESH module) --- diff --git a/src/OBJECT/GEOM_Actor.cxx b/src/OBJECT/GEOM_Actor.cxx index e7b77aef0..09eb87754 100644 --- a/src/OBJECT/GEOM_Actor.cxx +++ b/src/OBJECT/GEOM_Actor.cxx @@ -446,6 +446,9 @@ void GEOM_Actor ::SetShapeName(const TopoDS_Shape& theShape) { + if( !getIO() ) + return; + gp_Ax3 anAx3 = GEOMUtils::GetPosition(theShape); double center[3] = { anAx3.Location().X(), anAx3.Location().Y(),