text-item: Simplify text_item further to just hold a pivot_value.
[pspp] / src / ui / gui / psppire-output-view.c
index 4a9a666cef6dd4c149425cdb6da69053fbb80285..746f3b942be099ff7c650fdd19105773b14fed6e 100644 (file)
@@ -419,8 +419,10 @@ psppire_output_view_put (struct psppire_output_view *view,
   else if (is_text_item (item))
     {
       const struct text_item *text_item = to_text_item (item);
-      const char *text = text_item_get_text (text_item);
-      if (text[0] == '\0')
+      char *text = text_item_get_plain_text (text_item);
+      bool text_is_empty = text[0] == '\0';
+      free (text);
+      if (text_is_empty)
         return;
     }