diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-17 22:57:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-17 22:57:42 +0300 |
commit | 21f4d82b367750543ebfbc65df23e0863bf48c38 (patch) | |
tree | 63dfa3cda72741badf9810b6e215f912a44f5a8f /src/gui/gui.cpp | |
parent | 3154e878e1f4c937807dfc94d1308049e94f9e65 (diff) | |
download | plus-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.gz plus-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.bz2 plus-21f4d82b367750543ebfbc65df23e0863bf48c38.tar.xz plus-21f4d82b367750543ebfbc65df23e0863bf48c38.zip |
Fix code style.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 50a0a6a28..c4c69afa1 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1170,12 +1170,12 @@ void Gui::handleMouseWheelMovedDown(const MouseInput& mouseInput) if (mFocusHandler->getDraggedWidget()) sourceWidget = mFocusHandler->getDraggedWidget(); - int sourceWidgetX = 0; - int sourceWidgetY = 0; if (sourceWidget) { - sourceWidget->getAbsolutePosition(sourceWidgetX, sourceWidgetY); + int sourceWidgetX = 0; + int sourceWidgetY = 0; + sourceWidget->getAbsolutePosition(sourceWidgetX, sourceWidgetY); distributeMouseEvent(sourceWidget, MouseEventType::WHEEL_MOVED_DOWN, mouseInput.getButton(), @@ -1192,10 +1192,11 @@ void Gui::handleMouseWheelMovedUp(const MouseInput& mouseInput) if (mFocusHandler->getDraggedWidget()) sourceWidget = mFocusHandler->getDraggedWidget(); - int sourceWidgetX; - int sourceWidgetY; if (sourceWidget) { + int sourceWidgetX; + int sourceWidgetY; + sourceWidget->getAbsolutePosition(sourceWidgetX, sourceWidgetY); distributeMouseEvent(sourceWidget, MouseEventType::WHEEL_MOVED_UP, |