Fix wrong paper size due to the integer cast.
This commit is contained in:
parent
90f158d50e
commit
86af971b5b
15
paps-fix-paper-size-truncate.patch
Normal file
15
paps-fix-paper-size-truncate.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
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;
|
@ -38,6 +38,8 @@ Patch58: paps-correct-fsf-address.patch
|
|||||||
Patch59: %{name}-ft-header.patch
|
Patch59: %{name}-ft-header.patch
|
||||||
## rhbz#1196997
|
## rhbz#1196997
|
||||||
Patch60: %{name}-a3.patch
|
Patch60: %{name}-a3.patch
|
||||||
|
## rhbz#1214939
|
||||||
|
Patch61: %{name}-fix-paper-size-truncate.patch
|
||||||
|
|
||||||
Summary: Plain Text to PostScript converter
|
Summary: Plain Text to PostScript converter
|
||||||
Group: Applications/Publishing
|
Group: Applications/Publishing
|
||||||
@ -83,6 +85,7 @@ applications using paps API.
|
|||||||
%patch58 -p1 -b .fsf
|
%patch58 -p1 -b .fsf
|
||||||
%patch59 -p1 -b .ft-header
|
%patch59 -p1 -b .ft-header
|
||||||
%patch60 -p1 -b .a3
|
%patch60 -p1 -b .a3
|
||||||
|
%patch61 -p1 -b .paper-size
|
||||||
libtoolize -f -c
|
libtoolize -f -c
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
|
||||||
@ -130,6 +133,9 @@ install -p -m0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/fonts/conf.d/
|
|||||||
%{_libdir}/libpaps.so
|
%{_libdir}/libpaps.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 24 2015 Akira TAGOH <tagoh@redhat.com> - 0.6.8-34
|
||||||
|
- Fix wrong paper size due to the integer cast.
|
||||||
|
|
||||||
* Mon Mar 2 2015 Akira TAGOH <tagoh@redhat.com> - 0.6.8-33
|
* Mon Mar 2 2015 Akira TAGOH <tagoh@redhat.com> - 0.6.8-33
|
||||||
- Support A3 paper size.
|
- Support A3 paper size.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user