]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Cut long line
authorvsv <vsv@opencascade.com>
Wed, 4 Dec 2019 10:19:01 +0000 (13:19 +0300)
committervsv <vsv@opencascade.com>
Wed, 4 Dec 2019 10:19:01 +0000 (13:19 +0300)
src/XGUI/XGUI_Displayer.cpp

index d793a0501e2599d8fb5b71ff154bb5f3f144a788..a84c76a0868c9d8729ffc11d2acb07552c053c09 100644 (file)
@@ -299,7 +299,9 @@ bool XGUI_Displayer::redisplay(ObjectPtr theObject, bool theUpdateViewer)
       std::vector<int> aColor;
       ModelAPI_Tools::getColor(aResult, aColor);
       if (aColor.size() > 0) {
-        aAISIO->SetColor(Quantity_Color(aColor[0] / 255., aColor[1] / 255., aColor[2] / 255., Quantity_TOC_RGB));
+        Quantity_Color
+          aCol(aColor[0] / 255., aColor[1] / 255., aColor[2] / 255., Quantity_TOC_RGB);
+        aAISIO->SetColor(aCol);
       }
       // Set deflection
       double aDeflection = ModelAPI_Tools::getDeflection(aResult);