From 6fcbfdb76afbb1141b37961bb16728d3e8f7180d Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 31 Aug 2009 07:18:00 +0000 Subject: [PATCH] IPAL21345 SetBarOrientation works wrong in TUI --- src/VISU_I/VISU_PointMap3d_i.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/VISU_I/VISU_PointMap3d_i.cc b/src/VISU_I/VISU_PointMap3d_i.cc index 87e4825c..c76d3771 100644 --- a/src/VISU_I/VISU_PointMap3d_i.cc +++ b/src/VISU_I/VISU_PointMap3d_i.cc @@ -909,6 +909,13 @@ void VISU::PointMap3d_i::SetBarOrientation(VISU::ColoredPrs3dBase::Orientation t if(myBarOrientation == theBarOrientation) return; + if ( ( theBarOrientation == VISU::ColoredPrs3dBase::VERTICAL && myHeight < myWidth ) || + ( theBarOrientation == VISU::ColoredPrs3dBase::HORIZONTAL && myHeight > myWidth ) ) { + vtkFloatingPointType tmp = myHeight; + myHeight = myWidth; + myWidth = tmp; + } + myBarOrientation = theBarOrientation; } -- 2.39.2