starmath/source/parse.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 5505667cda3d0107ad67b34569db31c1c1fda2bc Author: Caolán McNamara <[email protected]> Date: Sun Dec 3 20:18:02 2017 +0000 survive without config for fuzzing Change-Id: I7fd64d984c7796c5260ec94c50b158278f55763d 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(); }
_______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
