Changeset 9251 in josm
- Timestamp:
- 2016-01-01T23:55:22+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r9078 r9251 163 163 realWidth = svg.getWidth(); 164 164 realHeight = svg.getHeight(); 165 /* extend small images to the possible maximum, may get reduced later again */ 166 if(maxSize.width != -1 && realWidth < maxSize.width) { 167 realHeight *= maxSize.width/realWidth; 168 realWidth = maxSize.width; 169 } 170 if(maxSize.height != -1 && realHeight < maxSize.height) { 171 realWidth *= maxSize.height/realHeight; 172 realHeight = maxSize.height; 173 } 165 174 } else { 166 175 if (baseImage == null) throw new AssertionError();
Note:
See TracChangeset
for help on using the changeset viewer.