[LyX/master] Amend [b6c089afa4/lyxgit].

Juergen Spitzmueller spitz at lyx.org
Wed Feb 3 09:21:09 UTC 2021


commit 8d5da386c4880b8bd7791480e0fdbcf4218ec45e
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Wed Feb 3 10:23:17 2021 +0100

    Amend [b6c089afa4/lyxgit].
---
 src/Text.cpp |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/Text.cpp b/src/Text.cpp
index 98d19df..f596f0d 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -895,12 +895,12 @@ void Text::insertStringAsLines(Cursor & cur, docstring const & str,
 				++pos;
 				space_inserted = true;
 			}
-		} else if (specialchars.find(ch) != specialchars.end()) {
-			if (par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second),
-					font, bparams.track_changes ?
-						Change(Change::INSERTED)
-						  : Change(Change::UNCHANGED)))
-				++pos;
+		} else if (specialchars.find(ch) != specialchars.end()
+			   && (par.insertInset(pos, new InsetSpecialChar(specialchars.find(ch)->second),
+					       font, bparams.track_changes
+					       ? Change(Change::INSERTED)
+					       : Change(Change::UNCHANGED)))) {
+			++pos;
 			space_inserted = false;
 		} else if (!isPrintable(ch)) {
 			// Ignore (other) unprintables


More information about the lyx-cvs mailing list