Problem: 1655336
Title: TGridView::VPointToLastCell range problem (r12, r13a5)
Received: May 14 1997 8:37AM
GridCell TGridView::VPointToLastCell(const VPoint& aPoint) const { GridCell aCell(fColWidths->FindItem(aPoint.h), fRowHeights->FindItem(aPoint.v)); if (!aCell.h) // If its invalid, return the last column aCell.h = fNumOfCols; if (!aCell.v) // If its invalid, return the last row aCell.v = fNumOfRows; return aCell; }I think it should be:
if (!aCell.h || aCell.h > fNumOfCols) // If its invalid, return the last column aCell.h = fNumOfCols; if (!aCell.v || aCell.v > fNumOfRows) // If its invalid, return the last row aCell.v = fNumOfRows;