[Libreoffice-commits] .: filter/source

Lubos Lunak llunak at kemper.freedesktop.org
Thu Mar 15 19:28:34 PDT 2012


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

New commits:
commit 3297ce2aa13efc6029983b716cec20ed7befda56
Author: Luboš Luňák <l.lunak at 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;


More information about the Libreoffice-commits mailing list