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

Stephan Bergmann sbergman at redhat.com
Mon Sep 8 00:50:25 PDT 2014


 oox/source/core/xmlfilterbase.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3bb2c23f5b03120f71ac8ed8f9a00b4d30666c82
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Sep 8 09:49:23 2014 +0200

    loplugin:implicitboolconversion
    
    Change-Id: I6caec8c11fab5fc8f1318be676e4bdf5f9cdbac5

diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 0f0ac4c..4ab32f8 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -742,7 +742,7 @@ writeCustomProperties( XmlFilterBase& rSelf, Reference< XDocumentProperties > xP
                 {
                     bool val ;
                     val = *( sal_Bool * )( aprop[n].Value ).getValue();
-                    writeElement( pAppProps, FSNS( XML_vt, XML_bool ), val);
+                    writeElement( pAppProps, FSNS( XML_vt, XML_bool ), val ? 1 : 0);
                 }
                 break;
                 default:


More information about the Libreoffice-commits mailing list