Skip to content

Commit 6ed6944

Browse files
committed
Fix block coord bounds
1 parent 29f295e commit 6ed6944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/applications/catmaid/static/js/tile-source.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@
15261526
let dimension = this.datasetAttributes[zoomLevel].ds.shape;
15271527
let block_size = this.datasetAttributes[zoomLevel].ds.codecs[0].configuration.chunk_shape;
15281528
let max = dimension.map((d, i) => {
1529-
return d / block_size[i];
1529+
return Math.ceil(d / block_size[i]) - 1;
15301530
})
15311531
let maxNum = new Array(max.length);
15321532
max.forEach((n, i) => maxNum[i] = Number(n));

0 commit comments

Comments
 (0)