From aa0dc9e6a75156e4817591e89d98eca766488cb4 Mon Sep 17 00:00:00 2001 From: nkv Date: Wed, 4 Jun 2008 08:37:56 +0000 Subject: [PATCH] Correct dialog size --- src/SVTK/SVTK_ViewParameterDlg.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_ViewParameterDlg.cxx b/src/SVTK/SVTK_ViewParameterDlg.cxx index 6be0cae4b..fcb6c6f80 100755 --- a/src/SVTK/SVTK_ViewParameterDlg.cxx +++ b/src/SVTK/SVTK_ViewParameterDlg.cxx @@ -510,8 +510,14 @@ void SVTK_ViewParameterDlg::onProjectionModeChanged(int mode) // update view myRWInteractor->GetDevice()->CreateTimer(VTKI_TIMER_FIRST); - myScaleBox->setVisible(aBtn == 0); - myViewAngleBox->setVisible(aBtn == 1); + if ( aBtn == 0 ) { + myViewAngleBox->setVisible(false); + myScaleBox->setVisible(true); + } + else { + myScaleBox->setVisible(false); + myViewAngleBox->setVisible(true); + } } void SVTK_ViewParameterDlg::onPositionModeChanged(int mode) -- 2.39.2