diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-05-31 12:26:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-05-31 15:12:01 +0200 |
commit | 6340986298afe94400f1d7b0afca2a45f2f0aa86 (patch) | |
tree | 6d2ea338143e49fb1c59ed2ee7542fc91f744768 /sw | |
parent | 0733e658463c8f78b104b218955d115707baf20f (diff) |
ofz#15045 configuration unavailable during fuzzing
Change-Id: I5bc3175a7cced2429b2ce8a43cbba07e32155d72
Reviewed-on: https://gerrit.libreoffice.org/73254
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/html/swhtml.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx index a55206287bbb..5eb5d6b437b1 100644 --- a/sw/source/filter/html/swhtml.cxx +++ b/sw/source/filter/html/swhtml.cxx @@ -42,6 +42,7 @@ #include <svtools/htmltokn.h> #include <svtools/htmlkywd.hxx> #include <svtools/ctrltool.hxx> +#include <unotools/configmgr.hxx> #include <unotools/pathoptions.hxx> #include <vcl/svapp.hxx> #include <vcl/wrkwin.hxx> @@ -314,7 +315,7 @@ SwHTMLParser::SwHTMLParser( SwDoc* pD, SwPaM& rCursor, SvStream& rIn, m_pTempViewFrame(nullptr) { // If requested explicitly, then force ignoring of comments (don't create postits for them). - if (officecfg::Office::Writer::Filter::Import::HTML::IgnoreComments::get()) + if (!utl::ConfigManager::IsFuzzing() && officecfg::Office::Writer::Filter::Import::HTML::IgnoreComments::get()) m_bIgnoreHTMLComments = true; m_nEventId = nullptr; |