Ignore:
Timestamp:
2017-12-18T00:46:58+01:00 (6 years ago)
Author:
Don-vip
Message:

see #15574:

  • additionally refactors ImageDisplay to use ImageEntry instead; stores width and height info while metadata of images are read; might break plugin code (patch by cmuelle8, minor changes)
  • remove double semicolon causing https://github.com/pmd/pmd/issues/785
  • enable PMD rule DoNotCallGarbageCollectionExplicitly
  • disable SpotBugs rule ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD
File:
1 edited

Legend:

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

    r13130 r13220  
    323323                // Set only if the image is new to preserve zoom and position if the same image is redisplayed
    324324                // (e.g. to update the OSD).
    325                 imgDisplay.setImage(entry.getFile(), entry.getExifOrientation());
     325                imgDisplay.setImage(entry);
    326326            }
    327327            setTitle(tr("Geotagged Images") + (entry.getFile() != null ? " - " + entry.getFile().getName() : ""));
     
    356356            // do not actually show the dialog again with a blank image if currently hidden (fix #10672)
    357357            setTitle(tr("Geotagged Images"));
    358             imgDisplay.setImage(null, null);
     358            imgDisplay.setImage(null);
    359359            imgDisplay.setOsdText("");
    360360            return;
Note: See TracChangeset for help on using the changeset viewer.