summaryrefslogtreecommitdiffstats
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-12-03 20:18:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-12-03 20:20:23 +0000
commit5505667cda3d0107ad67b34569db31c1c1fda2bc (patch)
tree99753345a7902300916f1693b5a9be2576c4ddb1 /starmath
parentRemove some useless include and using (diff)
downloadcore-5505667cda3d0107ad67b34569db31c1c1fda2bc.tar.gz
core-5505667cda3d0107ad67b34569db31c1c1fda2bc.zip
survive without config for fuzzing
Change-Id: I7fd64d984c7796c5260ec94c50b158278f55763d
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/parse.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx
index 89048b3d9998..b920fc871130 100644
--- a/starmath/source/parse.cxx
+++ b/starmath/source/parse.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <com/sun/star/i18n/UnicodeType.hpp>
#include <i18nlangtag/lang.h>
+#include <unotools/configmgr.hxx>
#include <unotools/syslocale.hxx>
#include <o3tl/make_unique.hxx>
#include <parse.hxx>
@@ -1235,7 +1236,7 @@ SmBlankNode *SmParser::DoBlank()
// Ignore trailing spaces, if corresponding option is set
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();
}