IsPositionVisible was incorrect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67026
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxSize clientSize = GetClientSize();
clientSize.y -= GetBuffer().GetBottomMargin();
- return (rect.GetBottom() > (startY + GetBuffer().GetTopMargin())) && (rect.GetTop() < (startY + clientSize.y));
+ return (rect.GetTop() >= (startY + GetBuffer().GetTopMargin())) && (rect.GetBottom() <= (startY + clientSize.y));
}
void wxRichTextCtrl::SetCaretPosition(long position, bool showAtLineStart)