From 4e198a53df539beec44b2cc082ac1606dd260af7 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 Nov 2013 08:13:41 +0000 Subject: [PATCH] 22412: [CEA 1005] Impossible to have a logarithmic scalar bar when values <1e-07 Enable Logarithmic check box for small values --- src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2