From: pkv Date: Mon, 10 Oct 2005 14:13:44 +0000 (+0000) Subject: fix for the Bug GVIEW10192 X-Git-Tag: BR-D5-38-2003_D2005-12-10~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fbcb216a7786016751d5260ea25e04027e87c2af;p=modules%2Fvisu.git fix for the Bug GVIEW10192 --- diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index 70593b23..629b0fe6 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -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