summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-04-10 18:48:03 +0200
committerJan Holesovsky <kendy@suse.cz>2013-04-10 18:49:08 +0200
commit43b2d676b5e2d3eb3788ff480b2ab2201a51b2f9 (patch)
tree58d8a052ed5388ae239eeeb8b0a7e61b55a6be8a /xmloff
parent1bdc4768e277ada3d227516b6d9a00a411a1294f (diff)
fdo#60594: Fix crash in the document (does not fix the original report).
Change-Id: I2129cf89ef1c9b8dd814a5c2079629385b92577a
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextHeaderFooterContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
index 8e4c2a68ebc2..ba423dc8bd4b 100644
--- a/xmloff/source/text/XMLTextHeaderFooterContext.cxx
+++ b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
@@ -78,7 +78,7 @@ XMLTextHeaderFooterContext::XMLTextHeaderFooterContext( SvXMLImport& rImport, sa
if (bFirst)
{
aAny = xPropSet->getPropertyValue( sShareContentFirst );
- sal_Bool bSharedFirst = *(sal_Bool *)aAny.getValue();
+ sal_Bool bSharedFirst = aAny.has<sal_Bool>() && *(sal_Bool *)aAny.getValue();
if( bSharedFirst )
{
// Don't share first/right headers any longer