X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FDriverMED%2FDriverMED_Family.cxx;h=25646c67c45a768ae471f0ae52ead8a38a70ef78;hp=46ae6549104403da0ac27c0c0ede12a86dc6ba3e;hb=64c772da5a9dd285f16f1f7efa07bb4c7fbdd4c3;hpb=dbacb15bb5b4909d736ddf66e866f10b22a466e6 diff --git a/src/DriverMED/DriverMED_Family.cxx b/src/DriverMED/DriverMED_Family.cxx index 46ae65491..25646c67c 100644 --- a/src/DriverMED/DriverMED_Family.cxx +++ b/src/DriverMED/DriverMED_Family.cxx @@ -217,7 +217,11 @@ DriverMED_Family ColorMap aColorMap; for (aGroupsIter = theGroups.begin(); aGroupsIter != theGroups.end(); aGroupsIter++) { - SALOMEDS::Color aColor = (*aGroupsIter)->GetColor(); + Quantity_Color aQColor = (*aGroupsIter)->GetColor(); + SALOMEDS::Color aColor; + aColor.R = aQColor.Red(); + aColor.G = aQColor.Green(); + aColor.B = aQColor.Blue(); bool isFound = false; for (ColorMap::iterator aColorIter = aColorMap.begin(); aColorIter != aColorMap.end(); aColorIter++) @@ -418,8 +422,14 @@ void DriverMED_Family::Init (SMESHDS_GroupBase* theGroup, const ColorMap& theCol ColorMap::const_iterator aColorIter = theColorMap.begin(); for (; aColorIter != theColorMap.end(); aColorIter++) { + Quantity_Color aGroupQColor = theGroup->GetColor(); + SALOMEDS::Color aGroupColor; + aGroupColor.R = aGroupQColor.Red(); + aGroupColor.G = aGroupQColor.Green(); + aGroupColor.B = aGroupQColor.Blue(); + SALOMEDS::Color aColor = aColorIter->second; - if( CompareColors( theGroup->GetColor(), aColor ) ) + if( CompareColors( aGroupColor, aColor ) ) { myGroupAttributVal = aColorIter->first; break;