MakeTiles: fix bug in SVG->PNG logic
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@749 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
f5b0089abc
commit
ef575b4125
1 changed files with 7 additions and 0 deletions
|
@ -224,6 +224,13 @@ public class MakeTiles
|
|||
}
|
||||
}
|
||||
|
||||
if (pngFile != null && pngFile.exists()) {
|
||||
ImageIcon ii = new ImageIcon(pngFile.toString());
|
||||
return new SourceImage(
|
||||
ii.getImage(),
|
||||
TILE_SIZE);
|
||||
}
|
||||
|
||||
pngFile = new File(fileName+"_"+TILE_SIZE+"x"+TILE_SIZE+".png");
|
||||
if (pngFile.exists()) {
|
||||
ImageIcon ii = new ImageIcon(pngFile.toString());
|
||||
|
|
Reference in a new issue