]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/DriverMED/DriverMED_Family.cxx
Salome HOME
Fix for Bug IPAL17943
[modules/smesh.git] / src / DriverMED / DriverMED_Family.cxx
index 45438ee6d203f461bff50895b53455bf9f8b8b71..16363f8e63ee46d80c9c2188d80a5708758cbd0e 100644 (file)
@@ -381,13 +381,8 @@ void DriverMED_Family::Init (SMESHDS_GroupBase* theGroup)
   myGroupNames.clear();
   myGroupNames.insert(string(theGroup->GetStoreName()));
 
-  myGroupAttributVal = 0;
-  
-  if (theGroup->GetColorGroup()!=0)
-    {
-      myGroupAttributVal = theGroup->GetColorGroup();
-    }
-
+  Quantity_Color aColor = theGroup->GetColor();
+  myGroupAttributVal = aColor.Hue();
 }
 
 //=============================================================================