diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkTileGrid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/SkTileGrid.cpp b/src/core/SkTileGrid.cpp index 7a9c8eec6b..c39e21b356 100644 --- a/src/core/SkTileGrid.cpp +++ b/src/core/SkTileGrid.cpp @@ -81,9 +81,9 @@ void SkTileGrid::search(const SkIRect& query, SkTDArray<void*>* results) { fInfo.fTileInterval.height(); tileStartX = SkPin32(tileStartX, 0, fXTileCount - 1); - tileEndX = SkPin32(tileEndX, 1, fXTileCount); + tileEndX = SkPin32(tileEndX, tileStartX+1, fXTileCount); tileStartY = SkPin32(tileStartY, 0, fYTileCount - 1); - tileEndY = SkPin32(tileEndY, 1, fYTileCount); + tileEndY = SkPin32(tileEndY, tileStartY+1, fYTileCount); int queryTileCount = (tileEndX - tileStartX) * (tileEndY - tileStartY); SkASSERT(queryTileCount); |