From: pkv Date: Fri, 18 Nov 2005 14:04:13 +0000 (+0000) Subject: fix for Bug GVIEW10593 X-Git-Tag: BR-D5-38-2003_D2005-24-11~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b587871a692eaa9c3d521079de460ab0bce08dda;p=modules%2Fvisu.git fix for Bug GVIEW10593 --- 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