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
This commit is contained in:
Vadim Zeitlin
2012-03-08 13:23:34 +00:00
parent e94f303173
commit 81f2b2ee81

View 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 {