diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-11-09 09:12:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-11-09 11:20:04 +0100 |
commit | d1e02f58a211111dd745a54ae93114a56cfdda0c (patch) | |
tree | ca241a2f2e8e90b2519a6d2bc861cfc3336e3ef8 /drawinglayer | |
parent | a5f5846fcfe6c9b1f39e753a9d3bad49f34c22a9 (diff) |
ofz#53151 Abrt
Change-Id: I2ccc6cbee28da9f91698b470449fb76b7729f634
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142475
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/Library_drawinglayercore.mk | 1 | ||||
-rw-r--r-- | drawinglayer/source/geometry/viewinformation2d.cxx | 10 |
2 files changed, 8 insertions, 3 deletions
diff --git a/drawinglayer/Library_drawinglayercore.mk b/drawinglayer/Library_drawinglayercore.mk index 7ec954416a23..2eb24a40182d 100644 --- a/drawinglayer/Library_drawinglayercore.mk +++ b/drawinglayer/Library_drawinglayercore.mk @@ -37,6 +37,7 @@ $(eval $(call gb_Library_use_libraries,drawinglayercore,\ salhelper \ svl \ tl \ + utl \ )) $(eval $(call gb_Library_use_custom_headers,drawinglayercore,\ diff --git a/drawinglayer/source/geometry/viewinformation2d.cxx b/drawinglayer/source/geometry/viewinformation2d.cxx index d23dda648bed..7e0240690a68 100644 --- a/drawinglayer/source/geometry/viewinformation2d.cxx +++ b/drawinglayer/source/geometry/viewinformation2d.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/geometry/AffineMatrix2D.hpp> #include <com/sun/star/geometry/RealRectangle2D.hpp> #include <officecfg/Office/Common.hxx> +#include <unotools/configmgr.hxx> #include <utility> using namespace com::sun::star; @@ -224,9 +225,12 @@ ViewInformation2D::ViewInformation2D() if (!bForwardsAreInitialized) { bForwardsAreInitialized = true; - bForwardedAntiAliasing = officecfg::Office::Common::Drawinglayer::AntiAliasing::get(); - bForwardPixelSnapHairline - = officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get(); + if (!utl::ConfigManager::IsFuzzing()) + { + bForwardedAntiAliasing = officecfg::Office::Common::Drawinglayer::AntiAliasing::get(); + bForwardPixelSnapHairline + = officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get(); + } } setUseAntiAliasing(bForwardedAntiAliasing); |