From: Frederick W. <fre...@us...> - 2012-01-12 15:17:30
|
rails/ui/swing/hexmap/HexMapImage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commits: commit 37094a814afed9d7da83d61d68c2fdd85293ae25 Author: Frederick Weld <fre...@gm...> Date: Thu Jan 12 16:07:48 2012 +0100 Fixed missing initial map image scaling (if no auto-zoom configured) diff --git a/rails/ui/swing/hexmap/HexMapImage.java b/rails/ui/swing/hexmap/HexMapImage.java index ec64685..b8e95f4 100644 --- a/rails/ui/swing/hexmap/HexMapImage.java +++ b/rails/ui/swing/hexmap/HexMapImage.java @@ -87,7 +87,7 @@ public final class HexMapImage extends JSVGCanvas { initialized = true; //catch up on setting the bounds (if bounds setting were called before rendering prepare) - if (initialMapSize != null) setBoundsAndResize(initialMapSize,initialZoomStep); + setBoundsAndResize(hexMap.getCurrentSize(),hexMap.getZoomStep()); } addGVTTreeRendererListener(null); } |