Ignore:
Timestamp:
2011-08-05T10:16:05+02:00 (13 years ago)
Author:
akks
Message:

'FastDraw: fix NPE in last segment drawing'

Location:
applications/editors/josm/plugins/FastDraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FastDraw/build.xml

    r26455 r26457  
    3030<project name="FastDraw" default="dist" basedir=".">
    3131    <!-- enter the SVN commit message -->
    32     <property name="commit.message" value="FastDraw: draw last line segment, up/down=change minDelta"/>
     32    <property name="commit.message" value="FastDraw: fix NPE in last segment drawing"/>
    3333    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    3434    <property name="plugin.main.version" value="4201"/>
  • applications/editors/josm/plugins/FastDraw/src/org/openstreetmap/josm/plugins/fastdraw/FastDrawingMode.java

    r26455 r26457  
    247247                Point lp=line.getLastPoint();
    248248                Point mp=Main.map.mapView.getMousePosition();
    249                 g.drawLine(lp.x,lp.y,mp.x,mp.y);
     249                if (lp!=null && mp!=null) g.drawLine(lp.x,lp.y,mp.x,mp.y);
    250250            }
    251251        }
Note: See TracChangeset for help on using the changeset viewer.