Skip to content

Commit 80e90f9

Browse files
committed
Fix: keep the float value, rather than casting to int
1 parent 10ca922 commit 80e90f9

File tree

16 files changed

+2
-2
lines changed

16 files changed

+2
-2
lines changed

core/src/main/java/org/mapfish/print/attribute/map/MapfishMapContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ public AffineTransform getTransform() {
301301
final AffineTransform transform = AffineTransform.getTranslateInstance(0.0, 0.0);
302302
// move to the center of the original map rectangle (this is the actual
303303
// size of the graphic)
304-
transform.translate(this.mapSize.width / 2, this.mapSize.height / 2);
304+
transform.translate(this.mapSize.width / 2.0, this.mapSize.height / 2.0);
305305

306306
// then rotate around this center
307307
transform.rotate(this.rotation);
308308

309309
// then move to an artificial origin (0,0) which might be outside the actual
310310
// painting area. this origin still keeps the center of the original map area
311311
// at the center of the rotated map area.
312-
transform.translate(-rotatedMapSize.width / 2, -rotatedMapSize.height / 2);
312+
transform.translate(-rotatedMapSize.width / 2.0, -rotatedMapSize.height / 2.0);
313313

314314
return transform;
315315
}
675 Bytes
Loading
-304 Bytes
Loading
55 Bytes
Loading
-203 Bytes
Loading
-96 Bytes
Loading
-59 Bytes
Loading
61 Bytes
Loading
Loading
2.32 KB
Loading

0 commit comments

Comments
 (0)