[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    [calligra/calligra/2.8] krita/ui/input/wintab: [CRITICAL] Fix bug that randomly disables Krita table
From:       Dmitry Kazakov <dimula73 () gmail ! com>
Date:       2014-08-23 14:54:02
Message-ID: E1XLChe-0003lJ-Mb () scm ! kde ! org
[Download RAW message or body]

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@kde.org

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

http://commits.kde.org/calligra/381f7a962a7eb75d5947a65de70f3ce455668c9e

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;
         }
     private:
         int m_axis_data[NAxes];
         QVector<AxesIndexes> m_x11_to_local_axis_mapping;
-        int m_lastSaneAxis;
     };
 
     SavedAxesData savedAxesData;
_______________________________________________
Krita mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic