Kaydet (Commit) 43b2d676 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

fdo#60594: Fix crash in the document (does not fix the original report).

Change-Id: I2129cf89ef1c9b8dd814a5c2079629385b92577a
üst 1bdc4768
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment