fix crash when exporting pdf via gui - fixes bug #45272
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 24 Jun 2015 21:47:58 +0000 (23:47 +0200)
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>
Wed, 24 Jun 2015 21:58:27 +0000 (23:58 +0200)
    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.

src/output/cairo.c

index a3070dddef3e2e69dc65ff58a3c4c8f1b82d7739..7f220641061907ae771c5caf5cd5a28af3635cd5 100644 (file)
@@ -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;