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

Stephan Bergmann sbergman at redhat.com
Mon Apr 25 14:39:15 UTC 2016


 sw/source/core/doc/number.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1af499d3e7746f47927dd086437946a4d7c4015b
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Apr 25 16:36:56 2016 +0200

    Cannot extract Any to sal_uInt8
    
    ...which has the same underlying type as sal_Bool.  The
    /org.openoffice.Office.Writer/Numbering/DefaultBulletList properties FontWeight
    and FontItalic are of type xs:short, i.e., sal_Int16.
    
    Change-Id: Id8ea7300b5fda65f7fe7df98d4f8b32c22da9886

diff --git a/sw/source/core/doc/number.cxx b/sw/source/core/doc/number.cxx
index 8bedd57..9be80a9 100644
--- a/sw/source/core/doc/number.cxx
+++ b/sw/source/core/doc/number.cxx
@@ -1227,7 +1227,7 @@ namespace numfunc
                         case 1:
                         case 2:
                         {
-                            sal_uInt8 nTmp = 0;
+                            sal_Int16 nTmp = 0;
                             pValues[nProp] >>= nTmp;
                             if ( nProp == 1 )
                                 meFontWeight = static_cast<FontWeight>(nTmp);


More information about the Libreoffice-commits mailing list