[Libreoffice-commits] core.git: xmloff/source

Jan Holesovsky kendy at suse.cz
Wed Apr 10 09:49:29 PDT 2013


 xmloff/source/text/XMLTextHeaderFooterContext.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 43b2d676b5e2d3eb3788ff480b2ab2201a51b2f9
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Wed Apr 10 18:48:03 2013 +0200

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

diff --git a/xmloff/source/text/XMLTextHeaderFooterContext.cxx b/xmloff/source/text/XMLTextHeaderFooterContext.cxx
index 8e4c2a6..ba423dc 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


More information about the Libreoffice-commits mailing list