From: abd Date: Wed, 3 May 2006 08:58:41 +0000 (+0000) Subject: Right default meaning X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bb43469813e66a7895fa2ac50ee2ca7a9fcd2b0;p=modules%2Fsmesh.git Right default meaning --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index f7f79516d..d3f71d170 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -2878,7 +2878,11 @@ void SMESHGUI::createPreferences() void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) { if( sect=="SMESH" ){ - float sbX1,sbY1,sbW,sbH; + float sbX1=0.01, + sbW=0.05, + sbY1=0.01, + sbH=0.5; + std::string aWarning; SUIT_ResourceMgr* aResourceMgr = SMESH::GetResourceMgr(this); if( name=="selection_object_color" || name=="selection_element_color" || @@ -2890,8 +2894,6 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) sbW = aResourceMgr->doubleValue("SMESH", "scalar_bar_vertical_width", sbW); if(sbX1+sbW > 1.0){ aWarning = "Origin and Size Vertical: X+Width > 1\n"; - sbX1=0.01; - sbW=0.05; aResourceMgr->setValue("SMESH", "scalar_bar_vertical_x", sbX1); aResourceMgr->setValue("SMESH", "scalar_bar_vertical_width", sbW); } @@ -2901,8 +2903,6 @@ void SMESHGUI::preferencesChanged( const QString& sect, const QString& name ) sbH = aResourceMgr->doubleValue("SMESH", "scalar_bar_vertical_height",sbH); if(sbY1+sbH > 1.0){ aWarning = "Origin and Size Vertical: Y+Height > 1\n"; - sbY1=0.01; - sbH=0.5; aResourceMgr->setValue("SMESH", "scalar_bar_vertical_y", sbY1); aResourceMgr->setValue("SMESH", "scalar_bar_vertical_height",sbH); }