text-item: Merge "title" and "subtitle" items into a new "page title".
[pspp] / src / output / cairo.c
index 2e749e22a420f6e16b3bb188f761443726a0c163..4debc93d8e29c02e88afb2e587c248bd49952132 100644 (file)
@@ -1662,18 +1662,10 @@ static struct xr_render_fsm *
 xr_render_text (struct xr_driver *xr, const struct text_item *text_item)
 {
   enum text_item_type type = text_item_get_type (text_item);
-  const char *text = text_item_get_text (text_item);
 
   switch (type)
     {
-    case TEXT_ITEM_TITLE:
-      free (xr->title);
-      xr->title = xstrdup (text);
-      break;
-
-    case TEXT_ITEM_SUBTITLE:
-      free (xr->subtitle);
-      xr->subtitle = xstrdup (text);
+    case TEXT_ITEM_PAGE_TITLE:
       break;
 
     case TEXT_ITEM_COMMAND_CLOSE: