]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
fix for Bug GVIEW10593
authorpkv <pkv@opencascade.com>
Fri, 18 Nov 2005 14:04:13 +0000 (14:04 +0000)
committerpkv <pkv@opencascade.com>
Fri, 18 Nov 2005 14:04:13 +0000 (14:04 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index 71750c40367a68796e137b0a349949bbe25ae7c1..480b94d669ffdbf493bb172f92f39fc96cdb1fde 100644 (file)
@@ -550,7 +550,6 @@ VISU::GaussPoints_i
        vtkIdType aScalarMode = GetScalarMode();
        TMinMax aTMinMax = myField->GetMinMax(aScalarMode);
        aScalarBarCtrl->SetRangeGlobal(aTMinMax.first, aTMinMax.second);
-
        aScalarBarCtrl->SetOrientation(myOrientation);
 
        int aScalarBarMode;
@@ -564,6 +563,15 @@ VISU::GaussPoints_i
          }
        }
        
+       if (aScalarBarMode==1){
+         float aRangeGlobal[2];
+         //
+         aRangeGlobal[0]=aTMinMax.first;
+         aRangeGlobal[1]=aTMinMax.second;
+         
+         GetGaussPointsPL()->GetMapper()->SetScalarRange(aRangeGlobal);
+       }
+       
        aScalarBarCtrl->SetMode(aScalarBarMode);
 
        // Position