From 71fa8d2050ba674117bdab6487e51e71a98cd591 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 8 Jul 2008 08:53:34 +0000 Subject: [PATCH] IPAL20025 4.x: wrong presentation is created with checked "Logarithmic Scaling" option. --- src/VISUGUI/VisuGUI_Table3dDlg.cxx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Table3dDlg.cxx b/src/VISUGUI/VisuGUI_Table3dDlg.cxx index d7e7a6ba..d5b5b556 100644 --- a/src/VISUGUI/VisuGUI_Table3dDlg.cxx +++ b/src/VISUGUI/VisuGUI_Table3dDlg.cxx @@ -731,17 +731,23 @@ bool VisuGUI_TableScalarBarPane::check() // check if logarithmic mode is on and check imposed range to not contain negative values if ( CBLog->isChecked() ) { - if ( minVal <= 0.0 || maxVal <= 0.0 ) { + if ( minVal <= 0.0 ) { if ( RBIrange->isChecked() ) { SUIT_MessageBox::warn1( this, tr("WRN_VISU"), tr("WRN_LOGARITHMIC_RANGE"), tr("BUT_OK")); } else { - SUIT_MessageBox::warn1( this, - tr("WRN_VISU"), - tr("WRN_LOGARITHMIC_FIELD_RANGE"), - tr("BUT_OK")); + if ( minVal == 0) + SUIT_MessageBox::warn1( this, + tr("WRN_VISU"), + tr("WRN_LOGARITHMIC_RANGE"), + tr("BUT_OK")); + else + SUIT_MessageBox::warn1( this, + tr("WRN_VISU"), + tr("WRN_LOGARITHMIC_FIELD_RANGE"), + tr("BUT_OK")); RBIrange->setChecked(true); changeRange(1); } -- 2.39.2