summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextHeaderFooterContext.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
index 6ee1e7346ae9..b396e911c006 100644
--- a/xmloff/source/text/XMLTextHeaderFooterContext.cxx
+++ b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
@@ -68,7 +68,9 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport, sa
if (bLeft)
{
aAny = xPropSet->getPropertyValue( sShareContent );
- sal_Bool bShared = *(sal_Bool *)aAny.getValue();
+ bool bShared;
+ if (!(aAny >>= bShared))
+ assert(false); // should return a value!
if( bShared )
{
// Don't share headers any longer
@@ -80,7 +82,9 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport, sa
if (bFirst)
{
aAny = xPropSet->getPropertyValue( sShareContentFirst );
- sal_Bool bSharedFirst = aAny.has<sal_Bool>() && *(sal_Bool *)aAny.getValue();
+ bool bSharedFirst;
+ if (!(aAny >>= bSharedFirst))
+ assert(false); // should return a value!
if( bSharedFirst )
{
// Don't share first/right headers any longer