]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
22412: [CEA 1005] Impossible to have a logarithmic scalar bar when values <1e-07
authoreap <eap@opencascade.com>
Wed, 20 Nov 2013 08:13:41 +0000 (08:13 +0000)
committereap <eap@opencascade.com>
Wed, 20 Nov 2013 08:13:41 +0000 (08:13 +0000)
Enable Logarithmic check box for small values

src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx

index 4ce15ef54f5a52e41e743acf9240768e6a8ac130..168f9e108176265050864aa1ef863fd949b7953a 100644 (file)
@@ -654,7 +654,8 @@ void SMESHGUI_Preferences_ScalarBarDlg::onSelectionChanged()
           myMinEdit->setText( QString::number( range[0],'g',12 ) );
           myMaxEdit->setText( QString::number( range[1],'g',12 ) );
           myLogarithmicCheck->setChecked(aLookupTable->GetScale() == VTK_SCALE_LOG10);
-          myLogarithmicCheck->setEnabled(range[0] > 1e-07 && range[1] > 1e-07);
+          //myLogarithmicCheck->setEnabled(range[0] > 1e-07 && range[1] > 1e-07);
+          myLogarithmicCheck->setEnabled(range[0] != range[1]);
         }
 
         vtkTextProperty* aTitleTextPrp = myScalarBarActor->GetTitleTextProperty();