summaryrefslogtreecommitdiff
path: root/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx')
-rw-r--r--xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
index 05764ebd0fb9..7245750f9edd 100644
--- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
+++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx
@@ -320,25 +320,25 @@ SvXMLImportContextRef XMLFootnoteConfigurationImportContext::CreateChildContext(
void XMLFootnoteConfigurationImportContext::Finish( bool bOverwrite )
{
- if (bOverwrite)
+ if (!bOverwrite)
+ return;
+
+ if (bIsEndnote)
{
- if (bIsEndnote)
+ Reference<XEndnotesSupplier> xSupplier(
+ GetImport().GetModel(), UNO_QUERY);
+ if (xSupplier.is())
{
- Reference<XEndnotesSupplier> xSupplier(
- GetImport().GetModel(), UNO_QUERY);
- if (xSupplier.is())
- {
- ProcessSettings(xSupplier->getEndnoteSettings());
- }
+ ProcessSettings(xSupplier->getEndnoteSettings());
}
- else
+ }
+ else
+ {
+ Reference<XFootnotesSupplier> xSupplier(
+ GetImport().GetModel(), UNO_QUERY);
+ if (xSupplier.is())
{
- Reference<XFootnotesSupplier> xSupplier(
- GetImport().GetModel(), UNO_QUERY);
- if (xSupplier.is())
- {
- ProcessSettings(xSupplier->getFootnoteSettings());
- }
+ ProcessSettings(xSupplier->getFootnoteSettings());
}
}
// else: ignore (there's only one configuration, so we can only overwrite)