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:
jason@long.name 2013-07-20 21:29:32 +00:00
parent f5b0089abc
commit ef575b4125

View file

@ -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());