- Fix to not do wordwrap when 'wrap=false' is given. (#240588)

This commit is contained in:
Akira TAGOH 2007-05-30 11:43:39 +00:00
parent 874c8cefe1
commit 1bb4ea10ac
2 changed files with 7 additions and 2 deletions

View File

@ -25,12 +25,14 @@ diff -ruN paps-0.6.6.orig/src/paps.c paps-0.6.6/src/paps.c
if (do_draw_header)
page_layout.header_sep = header_sep;
else
@@ -496,6 +499,8 @@
@@ -496,6 +499,10 @@
page_layout->pango_dir == PANGO_DIRECTION_LTR
? PANGO_ALIGN_LEFT : PANGO_ALIGN_RIGHT);
pango_layout_set_width (para->layout, paint_width * PANGO_SCALE);
+ if (page_layout->do_wordwrap)
+ pango_layout_set_wrap (para->layout, PANGO_WRAP_WORD_CHAR);
+ else
+ pango_layout_set_width (para->layout, -1);
para->height = 0;
if (wc == '\f')

View File

@ -1,6 +1,6 @@
Name: paps
Version: 0.6.6
Release: 19%{?dist}
Release: 20%{?dist}
License: LGPL
URL: http://paps.sourceforge.net/
@ -84,6 +84,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed May 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-20
- Fix to not do wordwrap when 'wrap=false' is given. (#240588)
* Tue Mar 27 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-19
- Fix PostScript breakage following the non-monetary numeric format from
current locale. (#231916)