webkitpdf.vala
authorAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:56:42 +0000 (15:56 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Apr 2016 07:56:42 +0000 (15:56 +0800)
webkitpdf.vala.c
BrowserWindow.vala.c

webkitpdf.vala

index ae0ac27..e02a0bf 100644 (file)
@@ -42,7 +42,7 @@ public class webkitpdf {
                        if (webkitpdf.opt_target_png == null && webkitpdf.opt_target_pdf == null) {
                 throw new OptionError.BAD_VALUE("missing pdf or png filename");
             }
-            if (webkitpdf.opt_target_pdf == null) {
+            if (webkitpdf.opt_target_pdf == null && webkitpdf.opt_target_png != null) {
                 throw new OptionError.BAD_VALUE("missing pdf file path");
             }