From a20a1d8b38f3b6df70b8ea2fa275cfa3aeb1505a Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Sat, 18 Jul 2015 21:14:23 +0200 Subject: [PATCH] FSwitch member variable switch_offset_pos was not initialized in the first constructor --- src/fswitch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fswitch.cpp b/src/fswitch.cpp index 069fca31..4fafc072 100644 --- a/src/fswitch.cpp +++ b/src/fswitch.cpp @@ -12,6 +12,7 @@ //---------------------------------------------------------------------- FSwitch::FSwitch(FWidget* parent) : FToggleButton(parent) { + switch_offset_pos = 0; init(); }