Fix wrong value returned from cutLengthForPaper (#213)

This commit is contained in:
Maubic Consultoría Tecnológica 2019-05-31 11:10:15 +02:00 committed by Sebastián Katzer
parent 7a3279c11d
commit 672d804518

View File

@ -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 -