diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-01 12:00:35 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-04 09:07:57 +0100 |
commit | d4246aeaa2b182c3defcefb68426d1be8e2caf75 (patch) | |
tree | 802bbb83df5f4939ec30e117efb60c0d0c8e6472 /writerperfect | |
parent | 19339e79e41cb9bbbbf0bd9a0e0d4a2cccc1f6a5 (diff) |
EPUB export, fixed layout: fix spine names
They are pages, not sections.
Change-Id: Ifd72d5ebec1d372a9bd99653d849479a6ffb6bfa
Reviewed-on: https://gerrit.libreoffice.org/45690
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/writer/EPUBExportFilter.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx index 301bdeb6f460..2d06e2c2e34f 100644 --- a/writerperfect/source/writer/EPUBExportFilter.cxx +++ b/writerperfect/source/writer/EPUBExportFilter.cxx @@ -95,13 +95,14 @@ sal_Bool EPUBExportFilter::filter(const uno::Sequence<beans::PropertyValue> &rDe // file, the flat ODF filter has access to the doc model, everything else // is in-between. EPUBPackage aPackage(mxContext, rDescriptor); - libepubgen::EPUBTextGenerator aGenerator(&aPackage, static_cast<libepubgen::EPUBSplitMethod>(nSplitMethod) + libepubgen::EPUBTextGenerator aGenerator(&aPackage #if LIBEPUBGEN_VERSION_SUPPORT , nVersion #endif ); #if LIBEPUBGEN_VERSION_SUPPORT - aGenerator.setLayoutMethod(static_cast<libepubgen::EPUBLayoutMethod>(nLayoutMethod)); + aGenerator.setOption(libepubgen::EPUB_GENERATOR_OPTION_SPLIT, nSplitMethod); + aGenerator.setOption(libepubgen::EPUB_GENERATOR_OPTION_LAYOUT, nLayoutMethod); #endif OUString aSourceURL; uno::Reference<frame::XModel> xSourceModel(mxSourceDocument, uno::UNO_QUERY); |