Commit 7af2ff54 authored by Wolthera van Hövell's avatar Wolthera van Hövell 🛍

Initialise variables on init.

Otherwise strangeness happens.
parent 4ca6b98a
......@@ -97,7 +97,13 @@ void KisColorSliderInput::init()
}
KisHSXColorSliderInput::KisHSXColorSliderInput(QWidget* parent, const int type, KoColor* color, KoColorDisplayRendererInterface *displayRenderer, KisCanvas2* canvas) : KisColorSliderInput(parent, color, type, displayRenderer, canvas),
m_canvas(canvas)
m_canvas(canvas),
m_hue(0),
m_sat(0),
m_val(0),
R(0),
G(0),
B(0)
{
init();
}
......
......@@ -41,7 +41,10 @@ struct KisHSVSlider::Private
};
KisHSVSlider::KisHSVSlider(QWidget* parent, KoColorDisplayRendererInterface *displayRenderer)
: KSelector(parent), d(new Private)
: KSelector(parent), d(new Private),
R(0),
G(0),
B(0)
{
setMaximum(255);
d->displayRenderer = displayRenderer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment