]> git.saurik.com Git - wxWidgets.git/commitdiff
ShowPosition fix to allow negative numbers
authorJulian Smart <julian@anthemion.co.uk>
Tue, 6 Apr 1999 08:29:30 +0000 (08:29 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 6 Apr 1999 08:29:30 +0000 (08:29 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 63bcc632f2f906f6d54b051bc72bfd1525bff81d..9d5a411fdbee0f8da9ade0753e91b23c3b46f1fc 100644 (file)
@@ -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