]> 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:06:30 +0000 (12:06 +0000)
committerdmv <dmv@opencascade.com>
Tue, 27 Jan 2009 12:06:30 +0000 (12:06 +0000)
src/VISUGUI/VisuGUI_Prs3dDlg.cxx
src/VISUGUI/VisuGUI_Table3dDlg.cxx

index faae8fbe973a0fac83d732d1a029561abe847d95..8372ddb2730f046f028cab61541e1caa44d21896 100644 (file)
@@ -1583,10 +1583,16 @@ bool VisuGUI_ScalarBarPane::check()
                                   tr("WRN_LOGARITHMIC_RANGE"),
                                   tr("BUT_OK"));
       } else {
-       SUIT_MessageBox::warning( this,
-                                  tr("WRN_VISU"),
-                                  tr("WRN_LOGARITHMIC_FIELD_RANGE"),
-                                  tr("BUT_OK"));
+       if ( minVal == 0 || maxVal == 0 )
+         SUIT_MessageBox::warning( this,
+                                 tr("WRN_VISU"),
+                                 tr("WRN_LOGARITHMIC_RANGE"),
+                                 tr("BUT_OK"));
+       else
+         SUIT_MessageBox::warning( this,
+                                   tr("WRN_VISU"),
+                                   tr("WRN_LOGARITHMIC_FIELD_RANGE"),
+                                   tr("BUT_OK"));
        RBIrange->setChecked(true);
        changeRange(1);
       }
index bc38e93749d16665a4e09f9b55a24c19e4e385a0..01224f5ab72776ab01959991d0cebe5fe080a08a 100644 (file)
@@ -674,7 +674,7 @@ 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 ) {
+    if ( minVal <= 0.0 || maxVal <= 0.0) {
       if ( RBIrange->isChecked() ) {
        SUIT_MessageBox::warning( this,
                                  tr("WRN_VISU"),