diff --git a/vassal-app/src/main/java/VASSAL/build/module/Map.java b/vassal-app/src/main/java/VASSAL/build/module/Map.java index 50c04aa0e4..7081800893 100644 --- a/vassal-app/src/main/java/VASSAL/build/module/Map.java +++ b/vassal-app/src/main/java/VASSAL/build/module/Map.java @@ -2719,12 +2719,15 @@ public Point getLocation(Board b, double zoom) { */ protected Point getLocation(int column, int row, double zoom) { final Point p = new Point(); + int dx = 0; for (int x = 0; x < column; ++x) { - p.translate((int) Math.floor(zoom * boardWidths[x][row]), 0); + dx += boardWidths[x][row]; } + int dy = 0; for (int y = 0; y < row; ++y) { - p.translate(0, (int) Math.floor(zoom * boardHeights[column][y])); + dy += boardHeights[column][y]; } + p.translate((int) round(zoom * dx), (int) round(zoom * dy)); return p; }