Salome HOME
projects
/
modules
/
geom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1344a93
)
0022777: [CEA 1291] Display the name of an object in the 3D View (fixed problem for...
author
mpa
<mpa@opencascade.com>
Tue, 17 Mar 2015 07:32:36 +0000
(10:32 +0300)
committer
mpa
<mpa@opencascade.com>
Tue, 17 Mar 2015 07:32:36 +0000
(10:32 +0300)
src/OBJECT/GEOM_Actor.cxx
patch
|
blob
|
history
diff --git
a/src/OBJECT/GEOM_Actor.cxx
b/src/OBJECT/GEOM_Actor.cxx
index e7b77aef001f7618e55620145737f2ec8e0a73d7..09eb877546f29c4a5456863d6986e58479745f0c 100644
(file)
--- 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(),