Update nikiroo-utils, bugfixes:
[fanfix.git] / src / be / nikiroo / fanfix / output / Text.java
index 28f3894b78b3b23f0d25c052006c3c7d0158d32a..ee72385b32220c479e1e03ad2d8a378f59539e49 100644 (file)
@@ -5,7 +5,6 @@ import java.io.File;
 import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.OutputStreamWriter;
-import java.net.URL;
 
 import be.nikiroo.fanfix.Instance;
 import be.nikiroo.fanfix.bundles.StringId;
@@ -105,7 +104,7 @@ class Text extends BasicOutput {
        protected void writeParagraphHeader(Paragraph para) throws IOException {
                if (para.getType() == ParagraphType.IMAGE) {
                        File file = new File(targetDir, getCurrentImageBestName(true));
-                       Instance.getCache().saveAsImage(new URL(para.getContent()), file);
+                       Instance.getCache().saveAsImage(para.getContentImage(), file);
                }
        }