diff options
author | Thomas White <taw@bitwiz.me.uk> | 2018-10-22 17:17:55 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2018-10-22 17:17:55 +0200 |
commit | c355bcfac1e000fa8de99856af505a9208bb2f2c (patch) | |
tree | 5fda99017f68a9a8ad62e855a2af46dfeae3e115 /src | |
parent | ace5266b94dde5c90f3cc270abc1b698124fe343 (diff) |
Wrap cairo_{save,restore} around paragraph rendering when printing narrative
Diffstat (limited to 'src')
-rw-r--r-- | src/print.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c index 18a083e..43c967e 100644 --- a/src/print.c +++ b/src/print.c @@ -237,7 +237,10 @@ static void print_narrative(GtkPrintOperation *op, GtkPrintContext *ctx, h += paragraph_height(ps->top->paras[i]); if ( h > page_height ) return; + cairo_save(cr); render_paragraph(cr, ps->top->paras[i], ps->p->is); + cairo_restore(cr); + cairo_translate(cr, 0.0, paragraph_height(ps->top->paras[i])); } |