[Libreoffice-commits] core.git: drawinglayer/source

tsahi glik tsahi.glik at cloudon.com
Sat Feb 15 01:28:25 CET 2014


 drawinglayer/source/processor2d/vclhelperbufferdevice.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit b540f9172814f51361cf31d2a4b03e34d1d375ef
Author: tsahi glik <tsahi.glik at cloudon.com>
Date:   Fri Feb 14 16:27:16 2014 -0800

    fix crash on ios

diff --git a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
index 176d7a4..ffb84cf 100644
--- a/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
+++ b/drawinglayer/source/processor2d/vclhelperbufferdevice.cxx
@@ -348,7 +348,11 @@ namespace drawinglayer
         OSL_ENSURE(mpContent, "impBufferDevice: No content, check isVisible() before accessing (!)");
         if(!mpMask)
         {
+#ifdef IOS
+            mpMask = getVDevBuffer().alloc(mrOutDev, maDestPixel.GetSize(), true, 8);
+#else
             mpMask = getVDevBuffer().alloc(mrOutDev, maDestPixel.GetSize(), true, 1);
+#endif
             mpMask->SetMapMode(mpContent->GetMapMode());
 
             // do NOT copy AA flag for mask!


More information about the Libreoffice-commits mailing list