]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Bug IPAL19237 - Qt4 porting: Changing of color in ?Vector Field Representation? dialo...
authorouv <ouv@opencascade.com>
Tue, 18 Mar 2008 10:36:46 +0000 (10:36 +0000)
committerouv <ouv@opencascade.com>
Tue, 18 Mar 2008 10:36:46 +0000 (10:36 +0000)
src/VISUGUI/VisuGUI_VectorsDlg.cxx

index 6e888fd29e42b3a8d1f2bce480b1db067f8a1831..b0f4bdcc0b74e2c7e7f6b880b93851d6bc7ebc86 100644 (file)
@@ -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()) {