svx/source/styles/ColorSets.cxx |   19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

New commits:
commit d3ae791b2fed42d87208c3a44a9d70bec544d238
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Jan 23 14:50:49 2025 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Thu Jan 23 18:01:57 2025 +0100

    ofz#391709141 Abrt __cxxabiv1::failed_throw
    
    Change-Id: I2c1f59707e24d0de9ab65704ee659355090a32f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180651
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx
index 5143854e1823..30268c913720 100644
--- a/svx/source/styles/ColorSets.cxx
+++ b/svx/source/styles/ColorSets.cxx
@@ -14,6 +14,7 @@
 #include <unordered_set>
 #include <vector>
 
+#include <comphelper/configuration.hxx>
 #include <docmodel/theme/ColorSet.hxx>
 #include <docmodel/theme/ThemeColorType.hxx>
 #include <o3tl/numeric.hxx>
@@ -151,16 +152,18 @@ ColorSets& ColorSets::get()
 
 void ColorSets::init()
 {
-    SvtPathOptions aPathOptions;
-    OUString aURLString = aPathOptions.GetDocumentThemePath();
-
     DocumentThemeScanner aScanner(maColorSets);
-    aScanner.addPaths(aURLString);
 
-    std::deque<OUString> aURLs;
-    vcl::file::splitPathString(aURLString, aURLs);
-    if (aURLs.size() > 0)
-        maUserFolder = aURLs[0];
+    if (!comphelper::IsFuzzing())
+    {
+        OUString aURLString = SvtPathOptions().GetDocumentThemePath();
+        aScanner.addPaths(aURLString);
+
+        std::deque<OUString> aURLs;
+        vcl::file::splitPathString(aURLString, aURLs);
+        if (aURLs.size() > 0)
+            maUserFolder = aURLs[0];
+    }
 }
 
 model::ColorSet const* ColorSets::getColorSet(std::u16string_view rName) const

Reply via email to