From 375173650a7eef722f89dce66a74fa6687c7ffe4 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 27 Jan 2009 12:04:26 +0000 Subject: [PATCH] IPAL8829 Inaccurate msg box appears during creation presentation with zero value in its field range. --- src/VISUGUI/VisuGUI_Prs3dDlg.cxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx index 88f4cb64..2a02f785 100644 --- a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx +++ b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx @@ -1535,10 +1535,16 @@ bool VisuGUI_ScalarBarPane::check() 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 || maxVal == 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