From 81f2b2ee81ce76fdc826e2740713e6fbefbfd5b3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 8 Mar 2012 13:23:34 +0000 Subject: [PATCH] Revert the zoom direction on Ctrl-mouse wheel in wxStyledTextCtrl. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stc/ScintillaWX.cpp b/src/stc/ScintillaWX.cpp index 7433b1d641..02d536c358 100644 --- a/src/stc/ScintillaWX.cpp +++ b/src/stc/ScintillaWX.cpp @@ -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 { -- 2.47.2