]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
fix for the Bug GVIEW10192
authorpkv <pkv@opencascade.com>
Mon, 10 Oct 2005 14:13:44 +0000 (14:13 +0000)
committerpkv <pkv@opencascade.com>
Mon, 10 Oct 2005 14:13:44 +0000 (14:13 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index 70593b23d071b03fd55d69f38ae3a59a882947fc..629b0fe69463311412ac8f50728e0ddb00cec590 100644 (file)
@@ -556,18 +556,16 @@ VISU::GaussPoints_i
        aScalarBarCtrl->SetOrientation(myOrientation);
 
        int aScalarBarMode;
+       aScalarBarMode = 1; //global sb
        if(myIsActiveLocalScalarBar){
-         aScalarBarMode = 2; 
-       }
-       else{
-         if(myIsDispGlobalScalarBar){
-           aScalarBarMode = 1;
+         if (myIsDispGlobalScalarBar){
+           aScalarBarMode = 2; 
          }
          else{
-           aScalarBarMode = 0;
-           aScalarBarCtrl->SetRangeGlobal(aRange);
+           aScalarBarMode = 0; 
          }
        }
+       
        aScalarBarCtrl->SetMode(aScalarBarMode);
 
        // Position