paps/paps-fix-paper-size-truncate.patch
Petr Šabata 1193465025 RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/paps#471e46e91c1721a2aa15149c62a644905c71a041
2020-10-15 22:48:26 +02:00

16 lines
606 B
Diff

diff -pruN paps-0.6.8.orig/src/paps.c paps-0.6.8/src/paps.c
--- paps-0.6.8.orig/src/paps.c 2015-04-24 11:49:53.220718394 +0900
+++ paps-0.6.8/src/paps.c 2015-04-24 11:51:30.847718394 +0900
@@ -532,9 +532,9 @@ int main(int argc, char *argv[])
/* Page layout */
if (page_width < 0)
- page_width = paper_sizes[(int)paper_type].width;
+ page_width = (paper_sizes[(int)paper_type].width + 0.5);
if (page_height < 0)
- page_height = paper_sizes[(int)paper_type].height;
+ page_height = (paper_sizes[(int)paper_type].height + 0.5);
if (num_columns == 1)
total_gutter_width = 0;