Changeset 9252 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2016-01-02T00:54:32+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r9251 r9252 164 164 realHeight = svg.getHeight(); 165 165 /* extend small images to the possible maximum, may get reduced later again */ 166 if (maxSize.width != -1 && realWidth < maxSize.width) {166 if (maxSize.width != -1 && realWidth < maxSize.width) { 167 167 realHeight *= maxSize.width/realWidth; 168 168 realWidth = maxSize.width; 169 169 } 170 if (maxSize.height != -1 && realHeight < maxSize.height) {170 if (maxSize.height != -1 && realHeight < maxSize.height) { 171 171 realWidth *= maxSize.height/realHeight; 172 172 realHeight = maxSize.height;
Note:
See TracChangeset
for help on using the changeset viewer.