Fix infinite loop in wxGrid::PosToEdgeOfLine().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 00:36:02 +0000 (00:36 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 9 Feb 2013 00:36:02 +0000 (00:36 +0000)
commite75ceab08ca0f3ed40931a42e623f770ea6da427
tree33cfee42aea96d64710a5f5ee6bb401ae2ede3ca
parente56fee472c0a59f9b1d45c84a8439e37a1f9925d
Fix infinite loop in wxGrid::PosToEdgeOfLine().

Return -1 from wxGridRowOperations::GetLineBefore(0) to ensure that we exit
the loop in wxGrid::PosToEdgeOfLine(). Doing this is the logical thing to do
as wxGridColumnOperations::GetLineBefore() already behaved like this and this
was is more expected than returning 0, as the function previously did for some
reason.

Closes #15035.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/private/grid.h