Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Issue #2811: Update content of Object node on creation moment
[modules/shaper.git]
/
src
/
GeomAPI
/
GeomAPI_AISObject.cpp
diff --git
a/src/GeomAPI/GeomAPI_AISObject.cpp
b/src/GeomAPI/GeomAPI_AISObject.cpp
index a94c7b4255f3c6a289a233030f82d7d8ce1326d9..c323a7835704631979c04f3dd8fefb1755444a3a 100644
(file)
--- a/
src/GeomAPI/GeomAPI_AISObject.cpp
+++ b/
src/GeomAPI/GeomAPI_AISObject.cpp
@@
-388,7
+388,8
@@
void GeomAPI_AISObject::getColor(int& theR, int& theG, int& theB)
if (anAIS.IsNull())
return;
- Quantity_Color aColor = anAIS->Color();
+ Quantity_Color aColor;
+ anAIS->Color(aColor);
theR = (int)(aColor.Red()*255.);
theG = (int)(aColor.Green()*255.);
theB = (int)(aColor.Blue()*255.);