From 6f306b267f63d0f59fb77b1ce41c678042dd6802 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 11 Jun 2014 23:04:46 -0700 Subject: [PATCH] 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 --- altosuilib/AltosUIMapView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- 2.30.2