From 83f57b096c5b72fcbf219987a051ca8880a7a577 Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Sat, 9 Aug 2014 12:27:44 +0200 Subject: [PATCH] Initialize symbolSize and ySpacing in PhasesToolbar they will be set to the right value later, but avoid using an uninitialized value when rearrangeButtons() is run for the first time --- cockatrice/src/phasestoolbar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cockatrice/src/phasestoolbar.cpp b/cockatrice/src/phasestoolbar.cpp index b34872f61..9b22f6118 100644 --- a/cockatrice/src/phasestoolbar.cpp +++ b/cockatrice/src/phasestoolbar.cpp @@ -100,7 +100,7 @@ void PhaseButton::triggerDoubleClickAction() } PhasesToolbar::PhasesToolbar(QGraphicsItem *parent) - : QGraphicsItem(parent), width(100), height(100) + : QGraphicsItem(parent), width(100), height(100), ySpacing(1), symbolSize(8) { QAction *aUntapAll = new QAction(this); connect(aUntapAll, SIGNAL(triggered()), this, SLOT(actUntapAll()));