diff --git a/src/ios/APPPrinter.m b/src/ios/APPPrinter.m index f90b844..d79ff0c 100755 --- a/src/ios/APPPrinter.m +++ b/src/ios/APPPrinter.m @@ -121,7 +121,7 @@ APPPrinterPaper* paperSpec = [[APPPrinterPaper alloc] initWithDictionary:ctrl.settings[@"paper"]]; - return paperSpec.length || paper.paperSize.height; + return (paperSpec.length)?paperSpec.length:paper.paperSize.height; } #pragma mark -