Kaydet (Commit) 08f4d7c1 authored tarafından Enrico Tröger's avatar Enrico Tröger

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

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4206 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst ccb6c535
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> 2009-09-17 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* plugins/filebrowser.c: * plugins/filebrowser.c:
......
...@@ -547,6 +547,9 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context, ...@@ -547,6 +547,9 @@ static void draw_page(GtkPrintOperation *operation, GtkPrintContext *context,
cairo_move_to(cr, 0, 0); cairo_move_to(cr, 0, 0);
pango_layout_set_width(dinfo->layout, width * PANGO_SCALE); 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) if (printing_prefs.print_page_header)
add_page_header(dinfo->layout, cr, dinfo, width, page_nr); add_page_header(dinfo->layout, cr, dinfo, width, page_nr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment