Salome HOME
0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for...
authormpa <mpa@opencascade.com>
Tue, 17 Mar 2015 07:32:36 +0000 (10:32 +0300)
committermpa <mpa@opencascade.com>
Tue, 17 Mar 2015 07:32:36 +0000 (10:32 +0300)
src/OBJECT/GEOM_Actor.cxx

index e7b77aef001f7618e55620145737f2ec8e0a73d7..09eb877546f29c4a5456863d6986e58479745f0c 100644 (file)
@@ -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(),