]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL8829 Inaccurate msg box appears during creation presentation with zero value...
authordmv <dmv@opencascade.com>
Tue, 27 Jan 2009 12:04:26 +0000 (12:04 +0000)
committerdmv <dmv@opencascade.com>
Tue, 27 Jan 2009 12:04:26 +0000 (12:04 +0000)
src/VISUGUI/VisuGUI_Prs3dDlg.cxx

index 88f4cb647c0d30604db9e0d23bb47ba5627a8ff1..2a02f7853991957e729c6d0e65a22fd12c1c1b40 100644 (file)
@@ -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);
       }