Am Montag, dem 10.11.2025 um 13:50 +0100 schrieb Jürgen Spitzmüller:
> Am Montag, dem 10.11.2025 um 13:01 +0100 schrieb Kornel Benko:
> > Works here too, if configured with
> >     -DLYX_ENABLE_BUILD_TYPE=release
> > but if configured with
> >     -DLYX_ENABLE_BUILD_TYPE=development -
> > DLYX_STDLIB_DEBUG:BOOL=ON
> >     -DLYX_DEBUG_SANITIZE:STRING=UNSPECIFIED
> > the test fails. (This is my standard for testing)
> 
> Now the question is why this is not satisfied.

Does the attached help?

-- 
Jürgen
diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index 4789d78f8c..3be75b0ea2 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -1194,14 +1194,6 @@ void TextClass::readSpecialChars(Lexer & lexrc)
 	SpecialChar sc;
 	if (special_chars_.find(name) != special_chars_.end())
 		sc = special_chars_[name];
-	else {
-		// init values
-		sc.can_break_after = false;
-		sc.force_ltr = false;
-		sc.is_char = false;
-		sc.is_letter = false;
-		sc.need_protect = false;
-	}
 	while (!getout && lexrc.isOK()) {
 		int le = lexrc.lex();
 		switch (le) {
diff --git a/src/TextClass.h b/src/TextClass.h
index 4a431ee6d2..4731b131f4 100644
--- a/src/TextClass.h
+++ b/src/TextClass.h
@@ -56,11 +56,11 @@ public:
 	std::string menustring;
 	std::string req;
 	std::string type;
-	bool can_break_after;
-	bool is_letter;
-	bool is_char;
-	bool need_protect;
-	bool force_ltr;
+	bool can_break_after = false;
+	bool is_letter = false;
+	bool is_char = false;
+	bool need_protect = false;
+	bool force_ltr = false;
 	FontInfo font;
 };
 

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to