Kaydet (Commit) 5505667c authored tarafından Caolán McNamara's avatar Caolán McNamara

survive without config for fuzzing

Change-Id: I7fd64d984c7796c5260ec94c50b158278f55763d
üst a0ec8bff
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <memory> #include <memory>
#include <com/sun/star/i18n/UnicodeType.hpp> #include <com/sun/star/i18n/UnicodeType.hpp>
#include <i18nlangtag/lang.h> #include <i18nlangtag/lang.h>
#include <unotools/configmgr.hxx>
#include <unotools/syslocale.hxx> #include <unotools/syslocale.hxx>
#include <o3tl/make_unique.hxx> #include <o3tl/make_unique.hxx>
#include <parse.hxx> #include <parse.hxx>
...@@ -1235,7 +1236,7 @@ SmBlankNode *SmParser::DoBlank() ...@@ -1235,7 +1236,7 @@ SmBlankNode *SmParser::DoBlank()
// Ignore trailing spaces, if corresponding option is set // Ignore trailing spaces, if corresponding option is set
if ( m_aCurToken.eType == TNEWLINE || if ( m_aCurToken.eType == TNEWLINE ||
(m_aCurToken.eType == TEND && SM_MOD()->GetConfig()->IsIgnoreSpacesRight()) ) (m_aCurToken.eType == TEND && !utl::ConfigManager::IsFuzzing() && SM_MOD()->GetConfig()->IsIgnoreSpacesRight()) )
{ {
pBlankNode->Clear(); pBlankNode->Clear();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment