From de4d7713bc86b4cd8444fd48ea882a67273f1d03 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 6 Apr 1999 08:29:30 +0000 Subject: [PATCH] ShowPosition fix to allow negative numbers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/textctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 63bcc632f2..9d5a411fdb 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -709,7 +709,7 @@ void wxTextCtrl::ShowPosition(long pos) int linesToScroll = specifiedLineLineNo - currentLineLineNo; if (linesToScroll != 0) - (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)MAKELPARAM(linesToScroll, 0)); + (void)SendMessage(hWnd, EM_LINESCROLL, (WPARAM)0, (LPARAM)linesToScroll); } int wxTextCtrl::GetLineLength(long lineNo) const -- 2.45.2