From: eap Date: Wed, 20 Nov 2013 08:13:41 +0000 (+0000) Subject: 22412: [CEA 1005] Impossible to have a logarithmic scalar bar when values <1e-07 X-Git-Tag: V7_3_0a1~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4e198a53df539beec44b2cc082ac1606dd260af7;p=modules%2Fsmesh.git 22412: [CEA 1005] Impossible to have a logarithmic scalar bar when values <1e-07 Enable Logarithmic check box for small values --- diff --git a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx index 4ce15ef54..168f9e108 100644 --- a/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx @@ -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();