Ignore:
Timestamp:
2013-06-21T00:29:01+02:00 (13 years ago)
Author:
pieren
Message:

Change some default preference values. Fix in grab plan image case where mouse clic is outside the image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/MenuActionGrabPlanImage.java

    r29668 r29677  
    145145            handleNewCoordinates(ea.east(), ea.north());
    146146        } else {
    147             countMouseClicked++;
    148147            // ignore clicks outside the image
    149148            if (ea.east() < wmsLayer.getImage(0).min.east() || ea.east() > wmsLayer.getImage(0).max.east()
    150149                    || ea.north() < wmsLayer.getImage(0).min.north() || ea.north() > wmsLayer.getImage(0).max.north())
     150            {
     151                System.out.println("ignore clic outside the image");
    151152                return;
     153            }
     154            countMouseClicked++;
    152155            if (mode == cGetCorners) {
    153156                if (countMouseClicked == 1) {
Note: See TracChangeset for help on using the changeset viewer.