[calligra/calligra/2.8] krita/ui/input/wintab: [CRITICAL] Fix bug that randomly disables Krita tablet support

Dmitry Kazakov dimula73 at gmail.com
Sat Aug 23 14:54:02 UTC 2014

Git commit 381f7a962a7eb75d5947a65de70f3ce455668c9e by Dmitry Kazakov.
Committed on 23/08/2014 at 13:45.
Pushed by dkazakov into branch 'calligra/2.8'.

[CRITICAL] Fix bug that randomly disables Krita tablet support

There was an uninitialized variable that caused updateAxesData() randomly
disable Krita tablet suport. That caused the stylus to freeze randomly
until the next Leave/Enter pair.

Workaround: if you see this bug and cannot update, just restart Krita until
you don't have this behavior. If you don't have it right after the start,
then the variable was (randomly) initialized "correctly".

CC:kimageshop at kde.org

M  +1    -2    krita/ui/input/wintab/kis_tablet_support.h


diff --git a/krita/ui/input/wintab/kis_tablet_support.h b/krita/ui/input/wintab/kis_tablet_support.h
index 88aa125..612e8e5 100644
--- a/krita/ui/input/wintab/kis_tablet_support.h
+++ b/krita/ui/input/wintab/kis_tablet_support.h
@@ -155,12 +155,11 @@ struct QTabletDeviceData
                 m_axis_data[m_x11_to_local_axis_mapping[dstIt]] = axes[srcIt];
-            return firstAxis <= m_lastSaneAxis;
+            return true;
         int m_axis_data[NAxes];
         QVector<AxesIndexes> m_x11_to_local_axis_mapping;
-        int m_lastSaneAxis;
     SavedAxesData savedAxesData;

More information about the kimageshop mailing list