[LyX/master] #6401 avoid use of lyxCode()

Stephan Witt switt at lyx.org
Tue Aug 25 08:28:58 UTC 2020


commit 3c1b4a5d7e39c674b7e938101d1ba9ec35a15147
Author: Stephan Witt <switt at lyx.org>
Date:   Tue Aug 25 07:14:29 2020 +0200

    #6401 avoid use of lyxCode()
---
 src/Paragraph.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index d1c7fe9..2465cc4 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4544,7 +4544,7 @@ Language * Paragraph::Private::locateSpellRange(
 		// hop to end of word
 		while (last < to && !owner_->isWordSeparator(last)) {
 			Inset const * inset = owner_->getInset(last);
-			if (inset && inset->lyxCode() == SPECIALCHAR_CODE) {
+			if (inset && dynamic_cast<const InsetSpecialChar *>(inset)) {
 				// check for "invisible" letters such as ligature breaks
 				odocstringstream os;
 				inset->toString(os);


More information about the lyx-cvs mailing list