From: Ben Pfaff Date: Sun, 27 Dec 2020 01:57:46 +0000 (-0800) Subject: render: Only scale to fit vertically with drivers that support it. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5b07bb0f5c2df4542b3d48bab1aefd17abb1982;p=pspp render: Only scale to fit vertically with drivers that support it. Fixes: bdd73954cd30 ("cairo: Support scaling tables to fit page width and page length.") --- diff --git a/src/output/render.c b/src/output/render.c index ebe259d85d..f9a93a4016 100644 --- a/src/output/render.c +++ b/src/output/render.c @@ -1619,7 +1619,9 @@ render_pager_create (const struct render_params *params, they won't break across as much vertical space, thus shrinking the table vertically more than the scale would imply. Shrinking only as much as necessary would require an iterative search. */ - if (table_item->pt && table_item->pt->look->shrink_to_fit[V]) + if (table_item->pt + && table_item->pt->look->shrink_to_fit[V] + && params->ops->scale) { int total_height = 0; for (size_t i = 0; i < p->n_pages; i++)