From: dmv Date: Tue, 27 Jan 2009 12:04:26 +0000 (+0000) Subject: IPAL8829 Inaccurate msg box appears during creation presentation with zero value... X-Git-Tag: V4_1_0_maintainance_20090206~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=375173650a7eef722f89dce66a74fa6687c7ffe4;p=modules%2Fvisu.git IPAL8829 Inaccurate msg box appears during creation presentation with zero value in its field range. --- 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); }