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