cairo: Let xr_layout_cell() assume its parameters are nonnull.
[pspp] / src / output / cairo.c
index 6db86317d893447012f2e7cfd16bb069948c893e..7165a50fd675382670721bd2e621d944b699507c 100644 (file)
@@ -868,16 +868,7 @@ xr_layout_cell (struct xr_driver *xr, const struct table_cell *cell,
       cairo_restore (xr->cairo);
     }
 
-  if (width != NULL || height != NULL)
-    {
-      int w, h;
-
-      pango_layout_get_size (font->layout, &w, &h);
-      if (width != NULL)
-        *width = w;
-      if (height != NULL)
-        *height = h;
-    }
+  pango_layout_get_size (font->layout, width, height);
 }
 
 static void