filter/source/graphicfilter/icgm/bitmap.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3297ce2aa13efc6029983b716cec20ed7befda56
Author: Luboš Luňák <l.lu...@suse.cz>
Date:   Fri Mar 16 03:24:22 2012 +0100

    0x80000001 can't fit into (signed) long
    
    As far as I can say, this value and all those negative values
    are actually not valid in CGM anyway, but since I do not know
    the code, I'm leaving them in, they shouldn't break anything.

diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx 
b/filter/source/graphicfilter/icgm/bitmap.cxx
index d614443..bc84135 100644
--- a/filter/source/graphicfilter/icgm/bitmap.cxx
+++ b/filter/source/graphicfilter/icgm/bitmap.cxx
@@ -256,7 +256,7 @@ sal_Bool CGMBitmap::ImplGetDimensions( CGMBitmapDescriptor& 
rDesc )
     rDesc.mnScanSize = 0;
     switch( rDesc.mnLocalColorPrecision )
     {
-        case 0x80000001 :                       // monochrome ( bit = 
0->backgroundcolor )
+        case long(0x80000001) :                 // monochrome ( bit = 
0->backgroundcolor )
         case 0 :                                //              bit = 
1->fillcolor
             rDesc.mnDstBitsPerPixel = 1;
             break;
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to