From: ouv Date: Tue, 18 Mar 2008 10:36:46 +0000 (+0000) Subject: Bug IPAL19237 - Qt4 porting: Changing of color in ?Vector Field Representation? dialo... X-Git-Tag: V5_0_0a1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d899a4a41d7f231fd1a67d4c3d78f29737f37fe3;p=modules%2Fvisu.git Bug IPAL19237 - Qt4 porting: Changing of color in ?Vector Field Representation? dialog box doesn?t influense on presentation in 3D Viewer. --- diff --git a/src/VISUGUI/VisuGUI_VectorsDlg.cxx b/src/VISUGUI/VisuGUI_VectorsDlg.cxx index 6e888fd2..b0f4bdcc 100644 --- a/src/VISUGUI/VisuGUI_VectorsDlg.cxx +++ b/src/VISUGUI/VisuGUI_VectorsDlg.cxx @@ -271,10 +271,11 @@ int VisuGUI_VectorsDlg::storeToPrsObject(VISU::ColoredPrs3d_i* thePrs) myPrsCopy->SetLineWidth(getLineWidth()); myPrsCopy->ShowColored(getUseMagnColor()); if(!myPrsCopy->IsColored()){ + QColor aSelectedColor = SelColor->color(); SALOMEDS::Color aColor; - aColor.R = myColor.red()/255.; - aColor.G = myColor.green()/255.; - aColor.B = myColor.blue()/255.; + aColor.R = aSelectedColor.red()/255.; + aColor.G = aSelectedColor.green()/255.; + aColor.B = aSelectedColor.blue()/255.; myPrsCopy->SetColor(aColor); } if (getUseGlyphs()) {