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:
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user