Changeset 15204 in josm


Ignore:
Timestamp:
2019-07-06T00:52:27+02:00 (7 weeks ago)
Author:
Don-vip
Message:

fix #17877 - NPE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/geoimage/ImageDisplay.java

    r14590 r15204  
    550550                return;
    551551
    552             if (mouseIsDragging(e)) {
     552            if (mouseIsDragging(e) && mousePointInImg != null) {
    553553                Point p = comp2imgCoord(visibleRect, e.getX(), e.getY(), getSize());
    554554                visibleRect.isDragUpdate = true;
     
    564564            }
    565565
    566             if (mouseIsZoomSelecting(e)) {
     566            if (mouseIsZoomSelecting(e) && mousePointInImg != null) {
    567567                Point p = comp2imgCoord(visibleRect, e.getX(), e.getY(), getSize());
    568568                visibleRect.checkPointInside(p);
Note: See TracChangeset for help on using the changeset viewer.