projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sack works
[pspp]
/
src
/
output
/
spv-driver.c
diff --git
a/src/output/spv-driver.c
b/src/output/spv-driver.c
index 5dcb9fee21835e54243f3143817afb968eb435cd..900a047af5f2a3fb921aaf75b191868df5d09460 100644
(file)
--- a/
src/output/spv-driver.c
+++ b/
src/output/spv-driver.c
@@
-24,6
+24,7
@@
#include "libpspp/cast.h"
#include "output/cairo-chart.h"
#include "output/output-item.h"
#include "libpspp/cast.h"
#include "output/cairo-chart.h"
#include "output/output-item.h"
+#include "output/page-setup.h"
#include "output/spv/spv-writer.h"
#include "gl/xalloc.h"
#include "output/spv/spv-writer.h"
#include "gl/xalloc.h"
@@
-49,7
+50,7
@@
spv_driver_cast (struct output_driver *driver)
static struct output_driver *
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
static struct output_driver *
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
- struct
string_map *o UNUSED
)
+ struct
driver_options *o
)
{
struct spv_writer *writer;
char *error = spv_writer_open (fh_get_file_name (fh), &writer);
{
struct spv_writer *writer;
char *error = spv_writer_open (fh_get_file_name (fh), &writer);
@@
-60,6
+61,10
@@
spv_create (struct file_handle *fh, enum settings_output_devices device_type,
return NULL;
}
return NULL;
}
+ struct page_setup *ps = page_setup_parse (o);
+ spv_writer_set_page_setup (writer, ps);
+ page_setup_destroy (ps);
+
struct spv_driver *spv = xmalloc (sizeof *spv);
*spv = (struct spv_driver) {
.driver = {
struct spv_driver *spv = xmalloc (sizeof *spv);
*spv = (struct spv_driver) {
.driver = {