Commit 494dd63b authored by Guilhelm Savin's avatar Guilhelm Savin

Merge pull request #148 from mathieupost/stylesheet-bugfix

Bugfix: getResource(url) return null
parents cb663ab7 00120fcd
......@@ -421,7 +421,8 @@ public class StyleSheet {
public void parseFromURL(String url) throws IOException {
URL u = StyleSheet.class.getClassLoader().getResource(url);
if (u == null) {
File f = new File(url);
String fileUrl = url.replace("file://", "");
File f = new File(fileUrl);
if (f.exists())
u = f.toURI().toURL();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment