From b587871a692eaa9c3d521079de460ab0bce08dda Mon Sep 17 00:00:00 2001 From: pkv Date: Fri, 18 Nov 2005 14:04:13 +0000 Subject: [PATCH] fix for Bug GVIEW10593 --- src/VISU_I/VISU_GaussPoints_i.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_GaussPoints_i.cc b/src/VISU_I/VISU_GaussPoints_i.cc index 71750c40..480b94d6 100644 --- a/src/VISU_I/VISU_GaussPoints_i.cc +++ b/src/VISU_I/VISU_GaussPoints_i.cc @@ -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 -- 2.39.2