From: Keith Packard Date: Thu, 12 Jun 2014 06:04:46 +0000 (-0700) Subject: altosuilib: Repaint map when starting line draw X-Git-Tag: 1.4~65 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=6f306b267f63d0f59fb77b1ce41c678042dd6802 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 --- 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) {