altosuilib: Repaint map when starting line draw
authorKeith Packard <keithp@keithp.com>
Thu, 12 Jun 2014 06:04:46 +0000 (23:04 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 12 Jun 2014 06:04:46 +0000 (23:04 -0700)
Starting line draw will remove any existing line, so repaint to get
rid of it

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUIMapView.java

index edae3e1e906e2bc72201ffbdd39e2102110e06cd..701986825ea2c3817286a83b411fe1b644c24523 100644 (file)
@@ -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) {