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

New commits:
commit 43b2d676b5e2d3eb3788ff480b2ab2201a51b2f9
Author: Jan Holesovsky <[email protected]>
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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to