]> git.saurik.com Git - wxWidgets.git/commitdiff
Revert the zoom direction on Ctrl-mouse wheel in wxStyledTextCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Mar 2012 13:23:34 +0000 (13:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 8 Mar 2012 13:23:34 +0000 (13:23 +0000)
The direction of the zoom in wxSTC didn't correspond to the usual conventions
which is to zoom in on Ctrl-Wheel-Up and zoom out on Ctrl-Wheel-Down, while
wxSTC did exactly the converse. Change it to behave as everybody else.

Closes #14031.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/stc/ScintillaWX.cpp

index 7433b1d641499274713a4b1fe8a3bd23b4233686..02d536c358fc489484f7b9d3a5d758f3046da709 100644 (file)
@@ -827,7 +827,7 @@ void ScintillaWX::DoMouseWheel(int rotation, int delta,
     int lines;
 
     if (ctrlDown) {  // Zoom the fonts if Ctrl key down
-        if (rotation < 0) {
+        if (rotation > 0) {
             KeyCommand(SCI_ZOOMIN);
         }
         else {