ShowPosition fix to allow negative numbers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -709,7 +709,7 @@ void wxTextCtrl::ShowPosition(long pos)
|
|||||||
int linesToScroll = specifiedLineLineNo - currentLineLineNo;
|
int linesToScroll = specifiedLineLineNo - currentLineLineNo;
|
||||||
|
|
||||||
if (linesToScroll != 0)
|
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
|
int wxTextCtrl::GetLineLength(long lineNo) const
|
||||||
|
Reference in New Issue
Block a user