summaryrefslogtreecommitdiff
path: root/src/gui/widgets/dropdown.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/dropdown.cpp')
-rw-r--r--src/gui/widgets/dropdown.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/dropdown.cpp b/src/gui/widgets/dropdown.cpp
index 31a41307c..f05f40b62 100644
--- a/src/gui/widgets/dropdown.cpp
+++ b/src/gui/widgets/dropdown.cpp
@@ -76,10 +76,12 @@ DropDown::DropDown(const Widget2 *const widget,
mHighlightColor(getThemeColor(Theme::HIGHLIGHT)),
mPadding(1),
mImagePadding(2),
+ mSpacing(0),
mDroppedDown(false),
mPushed(false),
mFoldedUpHeight(0),
- mIsDragged(false)
+ mIsDragged(false),
+ mSelectionListeners()
{
mFrameSize = 2;
@@ -156,10 +158,10 @@ DropDown::DropDown(const Widget2 *const widget,
if (mSkin)
{
+ mSpacing = mSkin->getOption("spacing");
mFrameSize = mSkin->getOption("frameSize");
mPadding = mSkin->getPadding();
mImagePadding = mSkin->getOption("imagePadding");
- mSpacing = mSkin->getOption("spacing");
}
adjustHeight();
}