This is similar to e74fb5effe for wxMSW and ensures that we don't consider the last position on the first line invalid in wxGTK neither. This fixes TextCtrlTestCase::XYToPositionSingleLine() unit test failure.
e74fb5effe
dfd03f5