[LyX/master] DocBook: fix an assertion/crash.
Thibaut Cuvelier
tcuvelier at lyx.org
Fri Oct 16 14:34:19 UTC 2020
commit 0ba9b7c0c87b3ef08deadc50a48ec01ac8e70bd3
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Fri Oct 16 17:02:06 2020 +0200
DocBook: fix an assertion/crash.
---
src/output_docbook.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index aca9075..458d838 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -30,6 +30,7 @@
#include "insets/InsetNote.h"
#include "support/lassert.h"
+#include "support/textutils.h"
#include <stack>
#include <iostream>
@@ -896,7 +897,7 @@ void outputDocBookInfo(
// even though they must be properly output if there is some abstract.
abstract = os2.str();
docstring cleaned = abstract;
- cleaned.erase(std::remove_if(cleaned.begin(), cleaned.end(), ::isspace), cleaned.end());
+ cleaned.erase(std::remove_if(cleaned.begin(), cleaned.end(), lyx::isSpace), cleaned.end());
// Nothing? Then there is no abstract!
if (cleaned.empty())
More information about the lyx-cvs
mailing list