[LyX/master] Amend bc73a85778ffb1432bdc510d9a710e7394f42163

Thibaut Cuvelier tcuvelier at lyx.org
Sun Dec 25 22:23:40 UTC 2022


commit 2592a36dae5d18a16586b14b4d17948c8b53a382
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Mon Dec 26 00:18:47 2022 +0100

    Amend bc73a85778ffb1432bdc510d9a710e7394f42163
    
    Missing return in `specialCharKindToXMLEntity`. Previously, the
    functions that were merged into `specialCharKindToXMLEntity` did not
    return any kind of error in case an unknown special character is met
    (enumerated value). This behaviour is preserved.
---
 src/insets/InsetSpecialChar.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetSpecialChar.cpp b/src/insets/InsetSpecialChar.cpp
index 1dcc3da..bebf61a 100644
--- a/src/insets/InsetSpecialChar.cpp
+++ b/src/insets/InsetSpecialChar.cpp
@@ -565,6 +565,8 @@ string specialCharKindToXMLEntity(InsetSpecialChar::Kind kind) {
 		return "LaTeX2&#x03b5;";
 	case InsetSpecialChar::Kind::PHRASE_LATEX:
 		return "LaTeX";
+	default:
+		return "";
 	}
 }
 }


More information about the lyx-cvs mailing list