SF.net SVN: geany:[4206] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Thu Sep 17 18:00:06 UTC 2009


Revision: 4206
          http://geany.svn.sourceforge.net/geany/?rev=4206&view=rev
Author:   eht16
Date:     2009-09-17 18:00:06 +0000 (Thu, 17 Sep 2009)

Log Message:
-----------
Fix wrong alignment of printed pages when page headers are disabled (closes #2856822).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/printing.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-09-17 17:38:53 UTC (rev 4205)
+++ trunk/ChangeLog	2009-09-17 18:00:06 UTC (rev 4206)
@@ -1,3 +1,10 @@
+2009-09-17  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>
+
+ * src/printing.c:
+   Fix wrong alignment of printed pages when page headers are
+   disabled (closes #2856822).
+
+
 2009-09-17  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>
 
  * plugins/filebrowser.c:

Modified: trunk/src/printing.c
===================================================================
--- trunk/src/printing.c	2009-09-17 17:38:53 UTC (rev 4205)
+++ trunk/src/printing.c	2009-09-17 18:00:06 UTC (rev 4206)
@@ -547,6 +547,9 @@
 	cairo_move_to(cr, 0, 0);
 
 	pango_layout_set_width(dinfo->layout, width * PANGO_SCALE);
+	pango_layout_set_alignment(dinfo->layout, PANGO_ALIGN_LEFT);
+	pango_layout_set_ellipsize(dinfo->layout, FALSE);
+	pango_layout_set_justify(dinfo->layout, FALSE);
 
 	if (printing_prefs.print_page_header)
 		add_page_header(dinfo->layout, cr, dinfo, width, page_nr);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list