Index: applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileRange.java
===================================================================
--- applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileRange.java	(revision 36174)
+++ applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/TileRange.java	(revision 36198)
@@ -48,9 +48,10 @@
      * Returns size
      * @return size
+     * @throws ArithmeticException – if the result overflows an int (see {@link Math#multiplyExact(int, int)})
      */
-    public int size() {
+    public int size() throws ArithmeticException {
         int xSpan = maxX - minX + 1;
         int ySpan = maxY - minY + 1;
-        return xSpan * ySpan;
+        return Math.multiplyExact(xSpan, ySpan);
     }
 }
