From e510b513c6190b6340b646cd5128fd5bbc9ed77d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Mon, 21 Dec 2009 13:48:24 +0000 Subject: [PATCH] Fix use of uninitialized variable (thanks to Valgrind) setMinimumSize() ... -> setGeometry() ... -> updateDataBuffer() and updateDataBuffer() uses horizontalScale. svn path=/trunk/KDE/kdelibs/; revision=1064695 --- widgets/signalplotter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/signalplotter.cpp b/widgets/signalplotter.cpp index f6db775b0..6e6182c97 100644 --- a/widgets/signalplotter.cpp +++ b/widgets/signalplotter.cpp @@ -126,9 +126,6 @@ SignalPlotter::SignalPlotter(QGraphicsItem *parent) d->scaledBy = 1; d->showThinFrame = true; - // Anything smaller than this does not make sense. - setMinimumSize(QSizeF(KIconLoader::SizeSmall, KIconLoader::SizeSmall)); - d->showVerticalLines = true; d->verticalLinesDistance = 30; d->verticalLinesScroll = true; @@ -143,6 +140,9 @@ SignalPlotter::SignalPlotter(QGraphicsItem *parent) d->stackPlots = true; d->fillPlots = true; + // Anything smaller than this does not make sense. + setMinimumSize(QSizeF(KIconLoader::SizeSmall, KIconLoader::SizeSmall)); + setSvgBackground("widgets/plot-background"); connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(themeChanged()));