From fbcb216a7786016751d5260ea25e04027e87c2af Mon Sep 17 00:00:00 2001 From: pkv Date: Mon, 10 Oct 2005 14:13:44 +0000 Subject: [PATCH] fix for the Bug GVIEW10192 --- src/VISU_I/VISU_GaussPoints_i.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 -- 2.39.2