From 4ac9a5568b59f6b34aaf07d34fd722a3e8c54f25 Mon Sep 17 00:00:00 2001 From: msv Date: Wed, 26 Apr 2006 13:35:33 +0000 Subject: [PATCH] Avoid using uninitialized variables in constructor of VisuGUI_ScalarBarPane --- src/VISUGUI/VisuGUI_ScalarBarDlg.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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; -- 2.39.2