From: Friedrich Beckmann Date: Wed, 24 Jun 2015 21:47:58 +0000 (+0200) Subject: fix crash when exporting pdf via gui - fixes bug #45272 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2352789a3250e11e0f5d2fd35a319c8de502a926;hp=43677e19ece98f61d8e362dc79ba7c263a6de8f0;p=pspp fix crash when exporting pdf via gui - fixes bug #45272 The problem https://savannah.gnu.org/bugs/?45272 occurs when the pdf export is done via the gui. The problem is that tables containing only carriage returns are considered to have no vertical space consumption. --- diff --git a/src/output/cairo.c b/src/output/cairo.c index a3070dddef..7f22064106 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -842,8 +842,6 @@ xr_measure_cell_height (void *xr_, const struct table_cell *cell, bb[H][0] = 0; bb[H][1] = width - xr->cell_margin * 2; - if (bb[H][1] <= 0) - return 0; bb[V][0] = 0; bb[V][1] = INT_MAX; clip[H][0] = clip[H][1] = clip[V][0] = clip[V][1] = 0;