[Libreoffice-commits] .: xmloff/source

Stephan Bergmann sbergmann at kemper.freedesktop.org
Mon Jan 16 23:47:32 PST 2012


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

New commits:
commit 7ca7690f84cfab87ddd25fa1200b11625d1f7ece
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 17 08:47:22 2012 +0100

    Better fix for WaE signed/unsigned comparison.

diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 96316d1..6db50ff 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -856,7 +856,7 @@ void XMLTextParagraphExport::exportListChange(
 
         if ( nListLevelsToBeClosed > 0 &&
              pListElements &&
-             pListElements->size() >= ( 2 * sal::static_int_cast< sal_uInt16 >(nListLevelsToBeClosed) ) )
+             pListElements->size() >= sal::static_int_cast< sal_uInt32 >( 2 * nListLevelsToBeClosed ) )
         {
             do {
                 for(size_t j = 0; j < 2; ++j)


More information about the Libreoffice-commits mailing list