]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix of bug IPAL21163 - TC5.1.2: Scalar bar on Gauss Points created in Geometry mode
authorouv <ouv@opencascade.com>
Fri, 5 Jun 2009 10:50:01 +0000 (10:50 +0000)
committerouv <ouv@opencascade.com>
Fri, 5 Jun 2009 10:50:01 +0000 (10:50 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index 04d52a8b0a7751ef427c71ad97c527f63f32ee43..bf30507b134a7b5901b9216b52c15b7ed9058670 100644 (file)
@@ -1012,7 +1012,7 @@ VISU::GaussPoints_i
                                       myColor.blue() / 255.0);
     }
     
-    anActor->SetBarVisibility(myShowBar); 
+    anActor->SetBarVisibility(myShowBar && GetIsColored()); 
 
     if( GetSpecificPL()->GetPrimitiveType() != VISU_OpenGLPointSpriteMapper::GeomSphere )
       theActor->SetRepresentation( VTK_POINTS );