summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-10-02 14:41:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-10-02 15:08:19 +0100
commitd92345561c998f7382cf9ef0fdcd29096f978435 (patch)
tree0b5b032e413614cd348b331d74f6e32035747d10 /xmloff
parenta9097843e6b2935dcab9f038b80e5a51bc5cfc94 (diff)
don't blow up on .odt export with !hasValue footers/headers
Change-Id: I2507c23b7b17b9172f720548d32cdfe299d4fa20
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextMasterPageExport.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLTextMasterPageExport.cxx b/xmloff/source/text/XMLTextMasterPageExport.cxx
index a449f9204c47..ab7f854bf07a 100644
--- a/xmloff/source/text/XMLTextMasterPageExport.cxx
+++ b/xmloff/source/text/XMLTextMasterPageExport.cxx
@@ -127,20 +127,21 @@ void XMLTextMasterPageExport::exportMasterPageContent(
else
{
aAny = rPropSet->getPropertyValue( sHeaderOn );
- sal_Bool bHeader = *(sal_Bool *)aAny.getValue();
+ sal_Bool bHeader = sal_False;
+ aAny >>= bHeader;
sal_Bool bHeaderFirst = sal_False;
if( bHeader )
{
aAny = rPropSet->getPropertyValue( sFirstShareContent );
- bHeaderFirst = !*(sal_Bool *)aAny.getValue();
+ aAny >>= bHeaderFirst;
}
sal_Bool bHeaderLeft = sal_False;
if( bHeader )
{
aAny = rPropSet->getPropertyValue( sHeaderShareContent );
- bHeaderLeft = !*(sal_Bool *)aAny.getValue();
+ aAny >>= bHeaderLeft;
}
if( xHeaderText.is() )
@@ -174,20 +175,21 @@ void XMLTextMasterPageExport::exportMasterPageContent(
}
aAny = rPropSet->getPropertyValue( sFooterOn );
- sal_Bool bFooter = *(sal_Bool *)aAny.getValue();
+ sal_Bool bFooter = sal_False;
+ aAny >>= bFooter;
sal_Bool bFooterFirst = sal_False;
if( bFooter )
{
aAny = rPropSet->getPropertyValue( sFirstShareContent );
- bFooterFirst = !*(sal_Bool *)aAny.getValue();
+ aAny >>= bFooterFirst;
}
sal_Bool bFooterLeft = sal_False;
if( bFooter )
{
aAny = rPropSet->getPropertyValue( sFooterShareContent );
- bFooterLeft = !*(sal_Bool *)aAny.getValue();
+ aAny >>= bFooterLeft;
}
if( xFooterText.is() )