diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-23 16:07:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-12-30 12:45:45 +0100 |
commit | f0a8b5b81d6be08de6e0d504616a1f09830f7c38 (patch) | |
tree | c13bfc5e50c8e1852bf50531d6fcdff6e59e718c /drawinglayer | |
parent | 2c8e9ed3cbe3aed5520ce8f5888dd083f8ee50c3 (diff) |
move IsFuzzing to comphelper
and try something a bit more generic
Change-Id: I1d8256576cd02f0a589df350ba7b53059dd586a5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161250
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/geometry/viewinformation2d.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drawinglayer/source/geometry/viewinformation2d.cxx b/drawinglayer/source/geometry/viewinformation2d.cxx index 03089e41e36f..67993d95544b 100644 --- a/drawinglayer/source/geometry/viewinformation2d.cxx +++ b/drawinglayer/source/geometry/viewinformation2d.cxx @@ -227,7 +227,7 @@ ViewInformation2D::ViewInformation2D() if (!bForwardsAreInitialized) { bForwardsAreInitialized = true; - if (!utl::ConfigManager::IsFuzzing()) + if (!comphelper::IsFuzzing()) { bForwardPixelSnapHairline = officecfg::Office::Common::Drawinglayer::SnapHorVerLinesToDiscrete::get(); @@ -356,8 +356,7 @@ void ViewInformation2D::setPixelSnapHairline(bool bNew) static std::atomic<bool>& globalAntiAliasing() { static std::atomic<bool> g_GlobalAntiAliasing - = utl::ConfigManager::IsFuzzing() - || officecfg::Office::Common::Drawinglayer::AntiAliasing::get(); + = comphelper::IsFuzzing() || officecfg::Office::Common::Drawinglayer::AntiAliasing::get(); return g_GlobalAntiAliasing; } |