summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-06-20 13:20:47 +0200
committerEike Rathke <erack@redhat.com>2017-06-20 13:22:25 +0200
commitf6add3f04bd5acc162ada79597a87398236f1320 (patch)
treea8c67e4a70032f3135587661715567400afe7dc9 /xmloff
parentf36edc1b1a1132eeede43d622c179ebb665ef908 (diff)
Remove useless if() condition
... because we bail out already early for all versions <= SvtSaveOptions::ODFVER_012 Change-Id: I80814be91c777dc03a9c821d706b24c7e1e757c1
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/sdxmlexp.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/xmloff/source/draw/sdxmlexp.cxx b/xmloff/source/draw/sdxmlexp.cxx
index ba792d13f128..7c7af84385f1 100644
--- a/xmloff/source/draw/sdxmlexp.cxx
+++ b/xmloff/source/draw/sdxmlexp.cxx
@@ -2654,16 +2654,13 @@ void SdXMLExport::exportAnnotations( const Reference<XDrawPage>& xDrawPage )
this->Characters(aAuthor);
}
- if (SvtSaveOptions().GetODFDefaultVersion() > SvtSaveOptions::ODFVER_012)
+ // initials
+ OUString aInitials( xAnnotation->getInitials() );
+ if( !aInitials.isEmpty() )
{
- // initials
- OUString aInitials( xAnnotation->getInitials() );
- if( !aInitials.isEmpty() )
- {
- SvXMLElementExport aInitialsElem( *this, XML_NAMESPACE_LO_EXT,
- XML_SENDER_INITIALS, true, false );
- this->Characters(aInitials);
- }
+ SvXMLElementExport aInitialsElem( *this, XML_NAMESPACE_LO_EXT,
+ XML_SENDER_INITIALS, true, false );
+ this->Characters(aInitials);
}
{