summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-01-31 17:32:42 +0100
committerMichael Stahl <mstahl@redhat.com>2012-02-02 14:36:16 +0100
commit4b85affdc4667995bdee9347cb4cc902c883495b (patch)
treec41f11fe36d972447026a86eb90a0d9d31b126f6 /xmloff
parentd8cb61f5f32247a8bbaf89fb910c015b6107f051 (diff)
fdo#38752: xmloff: add assertion for default-page-layout
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/XMLPageExport.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmloff/source/style/XMLPageExport.cxx b/xmloff/source/style/XMLPageExport.cxx
index d98d8d7bdc85..d08fa7ad08c1 100644
--- a/xmloff/source/style/XMLPageExport.cxx
+++ b/xmloff/source/style/XMLPageExport.cxx
@@ -255,6 +255,9 @@ void XMLPageExport::exportDefaultStyle()
if( bExport )
{
+ assert(GetExport().getDefaultVersion()
+ >= SvtSaveOptions::ODFVER_012);
+
//<style:default-page-layout>
SvXMLElementExport aElem( GetExport(), XML_NAMESPACE_STYLE,
XML_DEFAULT_PAGE_LAYOUT,