- Timestamp:
- 2015-10-29T17:47:43+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmImageView.java
r8933 r8967 10 10 import java.net.URL; 11 11 12 import javax.swing.ImageIcon; 12 13 import javax.swing.text.AttributeSet; 13 14 import javax.swing.text.Element; … … 127 128 String urlStr = src.toExternalForm(); 128 129 if (urlStr.endsWith(".svg") || urlStr.endsWith(".svg?format=raw")) { 129 imageField.set(this, new ImageProvider(urlStr).get().getImage()); 130 ImageIcon imgIcon = new ImageProvider(urlStr).setOptional(true).get(); 131 imageField.set(this, imgIcon != null ? imgIcon.getImage() : null); 130 132 } else { 131 133 Method loadImage = ImageView.class.getDeclaredMethod("loadImage");
Note:
See TracChangeset
for help on using the changeset viewer.