1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-07 10:50:53 +00:00
PlantUML 2022-03-10 12:26:37 +01:00 committed by GitHub
parent 57b1cde03a
commit 601620b039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,8 +88,12 @@ public class StyleLoader {
InputStream internalIs = null;
SFile localFile = new SFile(filename);
Log.info("Trying to load style " + filename);
if (localFile.exists() == false)
localFile = FileSystem.getInstance().getFile(filename);
try {
if (localFile.exists() == false)
localFile = FileSystem.getInstance().getFile(filename);
} catch (IOException e) {
Log.info("Cannot open file. " + e);
}
if (localFile.exists()) {
Log.info("File found : " + localFile.getPrintablePath());
@ -104,7 +108,6 @@ public class StyleLoader {
}
return internalIs;
}
private void loadSkinInternal(final BlocLines lines) {
for (Style newStyle : getDeclaredStyles(lines, styleBuilder))
this.styleBuilder.loadInternal(newStyle.getSignature(), newStyle);