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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Jul 22 18:11:15 UTC 2018


 canvas/source/vcl/spritehelper.cxx |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

New commits:
commit 8319ff926042f0044760386fb4567bdec84cad5f
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jul 22 16:52:43 2018 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Jul 22 20:10:54 2018 +0200

    fix oss-fuzz build
    
    Change-Id: I166d5f675d1b807e023cc19f72071fc77d3dd036
    Reviewed-on: https://gerrit.libreoffice.org/57823
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx
index d8a45d422653..123a6b64b2e4 100644
--- a/canvas/source/vcl/spritehelper.cxx
+++ b/canvas/source/vcl/spritehelper.cxx
@@ -41,6 +41,7 @@
 #include <vcl/opengl/OpenGLHelper.hxx>
 
 #include <canvas/canvastools.hxx>
+#include <config_features.h>
 
 #include "spritehelper.hxx"
 
@@ -186,9 +187,12 @@ namespace vclcanvas
             {
                 // Avoid the trick with the negative width in the OpenGL case,
                 // OutputDevice::DrawDeviceAlphaBitmap() doesn't like it.
-                if( !::basegfx::fTools::equalZero( aTransform.get(0,1) ) ||
-                    !::basegfx::fTools::equalZero( aTransform.get(1,0) ) ||
-                    OpenGLHelper::isVCLOpenGLEnabled())
+                if (!::basegfx::fTools::equalZero( aTransform.get(0,1) ) ||
+                    !::basegfx::fTools::equalZero( aTransform.get(1,0) )
+#if HAVE_FEATURE_UI
+                    || OpenGLHelper::isVCLOpenGLEnabled()
+#endif
+                   )
                 {
                     // "complex" transformation, employ affine
                     // transformator


More information about the Libreoffice-commits mailing list