[ooo-build-commit] .: patches/dev300

Thorsten Behrens thorsten at kemper.freedesktop.org
Thu Jan 28 15:40:08 PST 2010


 patches/dev300/apply                        |    2 +-
 patches/dev300/vcl-drawtransparent-fix.diff |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

New commits:
commit 782d8b5e450f09f9ab15ad7cb1d928d6f5d0ff3b
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Fri Jan 29 00:34:14 2010 +0100

    Fix BadMatch crash during slideshow
    
    * patches/dev300/apply: added below patch
    * patches/dev300/vcl-drawtransparent-fix.diff: defensive fix of a
      BadMatch, occurring during attempt of creating render picture for
      1bpp pixmap. i#107763

diff --git a/patches/dev300/apply b/patches/dev300/apply
index a74b01e..bea726c 100644
--- a/patches/dev300/apply
+++ b/patches/dev300/apply
@@ -3503,6 +3503,7 @@ valgrind-fixes.diff, thorsten
 framework-menubar-fix.diff, thorsten
 # backport from 3.3 - prevent crash in headless svp mode
 cws-sb118-headless-fix.diff, i#108681, thorsten
+vcl-drawtransparent-fix.diff, i#107763, thorsten
 
 [ BuildBits == ooo320-m11 ]
 connectivity-build-fix.diff, i#107957, fridrich
@@ -3510,4 +3511,3 @@ connectivity-build-fix.diff, i#107957, fridrich
 [ BuildBits ]
 # Allow oowintool to detect java sdk 1.6.x
 oowintool-java6.diff, fridrich
-
diff --git a/patches/dev300/vcl-drawtransparent-fix.diff b/patches/dev300/vcl-drawtransparent-fix.diff
new file mode 100644
index 0000000..0ee1355
--- /dev/null
+++ b/patches/dev300/vcl-drawtransparent-fix.diff
@@ -0,0 +1,14 @@
+#i107763# don't crash with BadMatch on 1bpp Pixmaps
+
+diff --git a/vcl/source/gdi/outdev6.cxx b/vcl/source/gdi/outdev6.cxx
+index cf20a29..db34542 100644
+--- vcl/source/gdi/outdev6.cxx
++++ vcl/source/gdi/outdev6.cxx
+@@ -269,6 +269,7 @@ void OutputDevice::DrawTransparent( const PolyPolygon& rPolyPoly,
+     // try hard to draw it directly, because the emulation layers are slower
+     if( !pDisableNative
+         && mpGraphics->supportsOperation( OutDevSupport_B2DDraw ) 
++        && GetBitCount() > 8
+ #ifdef WIN32
+         // workaround bad dithering on remote displaying when using GDI+ with toolbar buttoin hilighting
+         && !rPolyPoly.IsRect()


More information about the ooo-build-commit mailing list