From: vsv Date: Wed, 4 Dec 2019 10:19:01 +0000 (+0300) Subject: Cut long line X-Git-Tag: V9_5_0a1~128 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=227323fca46747847e850a1d6e3bdaac882e209e;p=modules%2Fshaper.git Cut long line --- diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index d793a0501..a84c76a08 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -299,7 +299,9 @@ bool XGUI_Displayer::redisplay(ObjectPtr theObject, bool theUpdateViewer) std::vector 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);