render: Only scale to fit vertically with drivers that support it.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 27 Dec 2020 01:57:46 +0000 (17:57 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 27 Dec 2020 01:57:46 +0000 (17:57 -0800)
Fixes: bdd73954cd30 ("cairo: Support scaling tables to fit page width and page length.")
src/output/render.c

index ebe259d85da518692d5fa4ed5bbe5a2f82895add..f9a93a4016113241ebfcc11983cae36b90a987bb 100644 (file)
@@ -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++)