Fixed bug in CoordToRowOrCol.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2002-09-07 12:46:39 +00:00
parent ab7ce33c56
commit 7fbc642095

View File

@@ -7259,7 +7259,7 @@ static int CoordToRowOrCol(int coord, int defaultDist, int minDist,
i_min = 0;
if (BorderArray.IsEmpty())
{
return i_max;
return maxOnOverflow ? (int)i_max : -1;
}
if ( i_max >= BorderArray.GetCount())