]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL20025 4.x: wrong presentation is created with checked "Logarithmic Scaling" option.
authordmv <dmv@opencascade.com>
Tue, 8 Jul 2008 08:53:34 +0000 (08:53 +0000)
committerdmv <dmv@opencascade.com>
Tue, 8 Jul 2008 08:53:34 +0000 (08:53 +0000)
src/VISUGUI/VisuGUI_Table3dDlg.cxx

index d7e7a6ba84c6a5f011bebb7fce9507528d3d912e..d5b5b55614777d8024e7ab1d68a3a72ee6d958f6 100644 (file)
@@ -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);
       }