projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PCOMPUTE works
[pspp]
/
src
/
output
/
odt.c
diff --git
a/src/output/odt.c
b/src/output/odt.c
index ed70ecbb4cf447dfd4ec8d27d254aaf64e1aad7f..abb30cb530c7c1c85b3edd46afdd825fbe573fe6 100644
(file)
--- a/
src/output/odt.c
+++ b/
src/output/odt.c
@@
-285,7
+285,6
@@
odt_create (struct file_handle *fh, enum settings_output_devices device_type,
struct string_map *o UNUSED)
{
struct output_driver *d;
struct string_map *o UNUSED)
{
struct output_driver *d;
- struct odt_driver *odt;
struct zip_writer *zip;
const char *file_name = fh_get_file_name (fh);
struct zip_writer *zip;
const char *file_name = fh_get_file_name (fh);
@@
-293,7
+292,7
@@
odt_create (struct file_handle *fh, enum settings_output_devices device_type,
if (zip == NULL)
return NULL;
if (zip == NULL)
return NULL;
-
odt = xzalloc (sizeof *odt
);
+
struct odt_driver *odt = XZALLOC (struct odt_driver
);
d = &odt->driver;
output_driver_init (d, &odt_driver_class, file_name, device_type);
d = &odt->driver;
output_driver_init (d, &odt_driver_class, file_name, device_type);
@@
-446,8
+445,8
@@
write_table_item_cell (struct odt_driver *odt,
xmlTextWriterWriteString (odt->content_wtr, _xml (ds_cstr (&body)));
ds_destroy (&body);
xmlTextWriterWriteString (odt->content_wtr, _xml (ds_cstr (&body)));
ds_destroy (&body);
- write_footnotes (odt, pt, cell->value->footnote_indexes,
-
cell->value
->n_footnotes);
+ const struct pivot_value_ex *ex = pivot_value_ex (cell->value);
+
write_footnotes (odt, pt, ex->footnote_indexes, ex
->n_footnotes);
}
static void
}
static void
@@
-598,7
+597,7
@@
odt_submit (struct output_driver *driver, const struct output_item *item)
break;
case OUTPUT_ITEM_GROUP:
break;
case OUTPUT_ITEM_GROUP:
-
NOT_REACHED ()
;
+
break
;
case OUTPUT_ITEM_IMAGE:
break;
case OUTPUT_ITEM_IMAGE:
break;