From d899a4a41d7f231fd1a67d4c3d78f29737f37fe3 Mon Sep 17 00:00:00 2001 From: ouv Date: Tue, 18 Mar 2008 10:36:46 +0000 Subject: [PATCH] Bug IPAL19237 - Qt4 porting: Changing of color in ?Vector Field Representation? dialog box doesn?t influense on presentation in 3D Viewer. --- src/VISUGUI/VisuGUI_VectorsDlg.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()) { -- 2.39.2