summaryrefslogtreecommitdiff
path: root/ao-tools
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2010-11-21 13:19:36 +1000
committerAnthony Towns <aj@erisian.com.au>2010-11-21 13:19:36 +1000
commitc040bcd06679484175542208fb564d0271a7fc1b (patch)
treeb5d762e2b0de575e077f387cc886f427d2cd45cd /ao-tools
parentc3994dd82d489289ebc99ff9c5fa88f560c023ac (diff)
AltosSiteMap: try to get new tile construction right
Diffstat (limited to 'ao-tools')
-rw-r--r--ao-tools/altosui/AltosSiteMap.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/ao-tools/altosui/AltosSiteMap.java b/ao-tools/altosui/AltosSiteMap.java
index 25450e7e..dd99ad48 100644
--- a/ao-tools/altosui/AltosSiteMap.java
+++ b/ao-tools/altosui/AltosSiteMap.java
@@ -264,12 +264,14 @@ public class AltosSiteMap extends JScrollPane implements AltosFlightDisplay {
}
if (!in_any) {
AltosSiteMapTile tile = addTileAt(tileOffset(pt));
+ setViewportView(comp);
+
Point2D.Double ref, lref;
ref = translatePoint(pt, tileCoordOffset(tile));
lref = translatePoint(last_pt, tileCoordOffset(tile));
- initMap(tile);
- setViewportView(comp);
tile.show(state, crc_errors, lref, ref);
+
+ initMap(tile);
}
last_pt = pt;
last_state = state.state;