Fix wxTextCtrl::XYToPosition (wxMSW)

When calculating character position for given (x,y) there is necessary
to verify if passed coordinates are sane and return error status (-1) if
not. y-coordinate has to be in the range [0..numLines-1] and x-coordinate
cannot exceed the length of the text in the given line.
This commit is contained in:
Artur Wieczorek
2017-07-29 21:19:15 +02:00
parent c4e1fb4ef9
commit a69ab2907c
2 changed files with 26 additions and 1 deletions

View File

@@ -195,6 +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().
wxOSX: