From: msv Date: Wed, 26 Apr 2006 13:35:33 +0000 (+0000) Subject: Avoid using uninitialized variables in constructor of VisuGUI_ScalarBarPane X-Git-Tag: mergeto_trunk_06May06~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4ac9a5568b59f6b34aaf07d34fd722a3e8c54f25;p=modules%2Fvisu.git Avoid using uninitialized variables in constructor of VisuGUI_ScalarBarPane --- diff --git a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx index fbbfa650..e2943bb9 100644 --- a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx +++ b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx @@ -64,16 +64,16 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref): SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr(); QString propertyName; propertyName = QString("scalar_bar_vertical_"); - myVerX = aResourceMgr->doubleValue("VISU", propertyName + "x", myVerX); - myVerY = aResourceMgr->doubleValue("VISU", propertyName + "y", myVerY); - myVerW = aResourceMgr->doubleValue("VISU", propertyName + "width", myVerW); - myVerH = aResourceMgr->doubleValue("VISU", propertyName + "height",myVerH); + myVerX = aResourceMgr->doubleValue("VISU", propertyName + "x", 0.); + myVerY = aResourceMgr->doubleValue("VISU", propertyName + "y", 0.); + myVerW = aResourceMgr->doubleValue("VISU", propertyName + "width", 0.); + myVerH = aResourceMgr->doubleValue("VISU", propertyName + "height",0.); propertyName = QString("scalar_bar_horizontal_"); - myHorX = aResourceMgr->doubleValue("VISU", propertyName + "x", myHorX); - myHorY = aResourceMgr->doubleValue("VISU", propertyName + "y", myHorY); - myHorW = aResourceMgr->doubleValue("VISU", propertyName + "width", myHorW); - myHorH = aResourceMgr->doubleValue("VISU", propertyName + "height",myHorH); + myHorX = aResourceMgr->doubleValue("VISU", propertyName + "x", 0.); + myHorY = aResourceMgr->doubleValue("VISU", propertyName + "y", 0.); + myHorW = aResourceMgr->doubleValue("VISU", propertyName + "width", 0.); + myHorH = aResourceMgr->doubleValue("VISU", propertyName + "height",0.); Imin = 0.0; Imax = 0.0; /*Fmin = 0.0; Fmax = 0.0;*/ Rmin = 0.0; Rmax = 0.0; myRangeMode = -1;