From: vsr Date: Mon, 20 Sep 2010 06:13:15 +0000 (+0000) Subject: 0020997: [CEA 420] Problem with VISU preferences X-Git-Tag: V5_1_main_20100921~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdad1c1cd577d9d58e483a2eb0b0f66acf5d66ac;p=modules%2Fvisu.git 0020997: [CEA 420] Problem with VISU preferences --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 213f1edd..fd8d1557 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -3823,8 +3823,16 @@ void VisuGUI::createPreferences() int min = addPreference( tr( "VISU_MIN" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_min" ); int max = addPreference( tr( "VISU_MAX" ), imposedGr, LightApp_Preferences::DblSpin, "VISU", "scalar_range_max" ); - setPreferenceProperty( min, "step", 0.1 ); - setPreferenceProperty( max, "step", 0.1 ); + + setPreferenceProperty( min, "min", -1.e12 ); + setPreferenceProperty( min, "max", 1.e12 ); + setPreferenceProperty( min, "step", 0.1 ); + setPreferenceProperty( min, "precision", -12 ); + + setPreferenceProperty( max, "min", -1.e12 ); + setPreferenceProperty( max, "max", 1.e12 ); + setPreferenceProperty( max, "step", 0.1 ); + setPreferenceProperty( max, "precision", -12 ); // group: "Font" int fontGr = addPreference( tr( "VISU_FONT" ), sbarTab );