From 6a0e93f16218b6a752b3311b5ca54e34fd88558e Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Wed, 7 Oct 2020 04:43:31 +0200 Subject: [PATCH] Amend 249d899 Non-ASCII characters make std::isspace crash, but not lyx::isSpace. --- src/Paragraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 32547ed5e3..520a9f838a 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -3430,7 +3430,7 @@ std::vector Paragraph::simpleDocBookOnePar(Buffer const & buf, } } else { char_type c = getUChar(buf.masterBuffer()->params(), runparams, i); - if (std::isspace(c) && !ignore_fonts) + if (lyx::isSpace(c) && !ignore_fonts) delayedChars.push_back(c); else *xs << c;