Fix wxTextCtrl::PositionToXY (wxMSW)

Check if character position is not past the line.
When calculating (x,y) for given character position there is necessary
to take into account that for multi-line control each line (but last one)
is ended by 2-character end of line mark. Each character of this
2-character mark has a different position in the text buffer but is mapped
to the same (x,y) coordinates.
This commit is contained in:
Artur Wieczorek
2017-07-29 21:52:39 +02:00
parent a69ab2907c
commit bb9c7680ab
2 changed files with 46 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ wxMSW:
- Fix placing 0RGB wxBitmaps on the clipboard.
- Fix handling wxClipboard data when wxUSE_OLE == 0.
- Fix caching of wxFONTSTYLE_SLANT fonts in wxTheFontList.
- Fix wxTextCtrl::XYToPosition().
- Fix wxTextCtrl::XYToPosition() and PositionToXY().
wxOSX: