From 36a4bd7229a562d414513073d1123080b9615cd9 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 26 Feb 2019 19:57:41 +0100 Subject: Use slide size from stylesheet when appropriate --- src/pdfstorycode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/pdfstorycode.c b/src/pdfstorycode.c index ad1d706..92e2809 100644 --- a/src/pdfstorycode.c +++ b/src/pdfstorycode.c @@ -67,7 +67,8 @@ static int render_slides_to_pdf(Presentation *p, ImageStore *is, const char *fil double log_w, log_h; s = presentation_slide(p, i); - slide_get_logical_size(s, &log_w, &log_h); + slide_get_logical_size(s, presentation_get_stylesheet(p), + &log_w, &log_h); cairo_pdf_surface_set_size(surf, w, w*(log_h/log_w)); -- cgit v1.2.3