Showing
3 changed files
with
7 additions
and
3 deletions
@@ -151,7 +151,8 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | @@ -151,7 +151,8 @@ public class PrintJob: UIPrintPageRenderer, UIPrintInteractionControllerDelegate | ||
151 | 151 | ||
152 | for paper in paperList { | 152 | for paper in paperList { |
153 | if (paper.paperSize.width == currentSize!.width && paper.paperSize.height == currentSize!.height) || | 153 | if (paper.paperSize.width == currentSize!.width && paper.paperSize.height == currentSize!.height) || |
154 | - (paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width) { | 154 | + (paper.paperSize.width == currentSize!.height && paper.paperSize.height == currentSize!.width) |
155 | + { | ||
155 | return paper | 156 | return paper |
156 | } | 157 | } |
157 | } | 158 | } |
@@ -61,9 +61,8 @@ public class PrintingPlugin: NSObject, FlutterPlugin { | @@ -61,9 +61,8 @@ public class PrintingPlugin: NSObject, FlutterPlugin { | ||
61 | let printJob = PrintJob(printing: self, index: args["job"] as! Int) | 61 | let printJob = PrintJob(printing: self, index: args["job"] as! Int) |
62 | let dynamic = args["dynamic"] as! Bool | 62 | let dynamic = args["dynamic"] as! Bool |
63 | 63 | ||
64 | - | ||
65 | let outputType: UIPrintInfo.OutputType | 64 | let outputType: UIPrintInfo.OutputType |
66 | - switch (args["outputType"] as! Int) { | 65 | + switch args["outputType"] as! Int { |
67 | case 0: | 66 | case 0: |
68 | outputType = UIPrintInfo.OutputType.general | 67 | outputType = UIPrintInfo.OutputType.general |
69 | case 1: | 68 | case 1: |
-
Please register or login to post a comment