[LyX/master] Fix cut and past error (reported by coverity)

Juergen Spitzmueller spitz at lyx.org
Sat Sep 7 10:40:14 UTC 2024


commit 458f39cc4399cae3abaae17dbf100c380de48a57
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Sat Sep 7 12:39:45 2024 +0200

    Fix cut and past error (reported by coverity)
---
 src/TextClass.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/TextClass.cpp b/src/TextClass.cpp
index d58bc28d55..f8b91fdfbc 100644
--- a/src/TextClass.cpp
+++ b/src/TextClass.cpp
@@ -1128,7 +1128,7 @@ bool TextClass::readCiteEngine(Lexer & lexrc, ReadType rt, bool const add)
 		if (numerical)
 			numerical = getCiteStyles(ENGINE_TYPE_NUMERICAL).empty();
 		if (notes)
-			numerical = getCiteStyles(ENGINE_TYPE_NOTES).empty();
+			notes = getCiteStyles(ENGINE_TYPE_NOTES).empty();
 		if (defce)
 			defce = getCiteStyles(ENGINE_TYPE_DEFAULT).empty();
 	}


More information about the lyx-cvs mailing list