Can you try this: diff --git a/main/comphelper/inc/comphelper/extract.hxx b/main/comphelper/inc/comphelper/extract.hxx index dc67c5dc58..fc75fa9cb9 100644 --- a/main/comphelper/inc/comphelper/extract.hxx +++ b/main/comphelper/inc/comphelper/extract.hxx @@ -131,9 +131,10 @@ inline sal_Bool SAL_CALL extractInterface( inline sal_Bool SAL_CALL any2bool( const ::com::sun::star::uno::Any & rAny ) throw( ::com::sun::star::lang::IllegalArgumentException ) { - if (rAny.getValueTypeClass() == ::com::sun::star::uno::TypeClass_BOOLEAN) + sal_Bool sValue; + if ( rAny >>= sValue) { - return *(sal_Bool *)rAny.getValue(); + return sValue; } else { diff --git a/main/cppu/inc/com/sun/star/uno/Any.hxx b/main/cppu/inc/com/sun/star/uno/Any.hxx index e1d125be82..2a38598efa 100644 --- a/main/cppu/inc/com/sun/star/uno/Any.hxx +++ b/main/cppu/inc/com/sun/star/uno/Any.hxx @@ -251,9 +251,9 @@ inline sal_Bool SAL_CALL operator >>= ( Any const & rAny, bool & value ) { value = *reinterpret_cast< sal_Bool const * >( &rAny.pReserved ) != sal_False; - return true; + return sal_True; } - return false; + return sal_False; } //______________________________________________________________________________ diff --git a/main/xmloff/source/core/xmlexp.cxx b/main/xmloff/source/core/xmlexp.cxx index 4a867ca64c..2b63c0f991 100644 --- a/main/xmloff/source/core/xmlexp.cxx +++ b/main/xmloff/source/core/xmlexp.cxx @@ -699,7 +699,7 @@ void SAL_CALL SvXMLExport::setSourceDocument( const uno::Reference< lang::XCompo OUString sUsePrettyPrinting(RTL_CONSTASCII_USTRINGPARAM(XML_USEPRETTYPRINTING)); if (xPropertySetInfo->hasPropertyByName(sUsePrettyPrinting)) { - uno::Any aAny = mxExportInfo->getPropertyValue(sUsePrettyPrinting); + uno::Any aAny = mxExportInfo->getPropertyValue(bUsePrettyPrinting); if (::cppu::any2bool(aAny)) mnExportFlags |= EXPORT_PRETTY; else
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org For additional commands, e-mail: dev-h...@openoffice.apache.org