File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/src/com/davemorrissey/labs/subscaleview Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1268,12 +1268,12 @@ private void initialiseTileMap(Point maxTileDimensions) {
12681268 int sTileHeight = sHeight ()/yTiles ;
12691269 int subTileWidth = sTileWidth /sampleSize ;
12701270 int subTileHeight = sTileHeight /sampleSize ;
1271- while (subTileWidth > maxTileDimensions .x || (subTileWidth > getWidth () * 1.25 && sampleSize < fullImageSampleSize )) {
1271+ while (subTileWidth + xTiles + 1 > maxTileDimensions .x || (subTileWidth > getWidth () * 1.25 && sampleSize < fullImageSampleSize )) {
12721272 xTiles += 1 ;
12731273 sTileWidth = sWidth ()/xTiles ;
12741274 subTileWidth = sTileWidth /sampleSize ;
12751275 }
1276- while (subTileHeight > maxTileDimensions .y || (subTileHeight > getHeight () * 1.25 && sampleSize < fullImageSampleSize )) {
1276+ while (subTileHeight + yTiles + 1 > maxTileDimensions .y || (subTileHeight > getHeight () * 1.25 && sampleSize < fullImageSampleSize )) {
12771277 yTiles += 1 ;
12781278 sTileHeight = sHeight ()/yTiles ;
12791279 subTileHeight = sTileHeight /sampleSize ;
You can’t perform that action at this time.
0 commit comments