summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-03-16 03:24:22 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-03-16 03:26:57 +0100
commit3297ce2aa13efc6029983b716cec20ed7befda56 (patch)
tree2f9069ea1fc6da82055c084858629dee40ea9a63 /filter
parent0c1a63b1fbbd9540a724f6918675a5559b19c156 (diff)
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.
Diffstat (limited to 'filter')
-rw-r--r--filter/source/graphicfilter/icgm/bitmap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx
index d6144434e0eb..bc8413518d26 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;