diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-11 23:04:46 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-11 23:04:46 -0700 |
commit | 6f306b267f63d0f59fb77b1ce41c678042dd6802 (patch) | |
tree | 462a70b4e1b984bace701793be73d4039e593e15 | |
parent | efb6a3d5ed12f8061a48a66efcfe066e68eaf792 (diff) |
altosuilib: Repaint map when starting line draw
Starting line draw will remove any existing line, so repaint to get
rid of it
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altosuilib/AltosUIMapView.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/altosuilib/AltosUIMapView.java b/altosuilib/AltosUIMapView.java index edae3e1e..70198682 100644 --- a/altosuilib/AltosUIMapView.java +++ b/altosuilib/AltosUIMapView.java @@ -134,8 +134,10 @@ public class AltosUIMapView extends Canvas implements MouseMotionListener, Mouse notice_user_input(); if (is_drag_event(e)) drag_start(e); - else + else { line.pressed(e, transform); + repaint(); + } } public void mouseReleased(MouseEvent e) { |