]> git.lyx.org Git - lyx.git/blobdiff - src/BufferEncodings.cpp
Warn if buffer is switched with unapplied document changes (#9369)
[lyx.git] / src / BufferEncodings.cpp
index dcf422d54bbe4888142e74584c2fb7cdf161b291..fe7e90c230b6299ad36fcdd982ef22f2d1d5c5f4 100644 (file)
@@ -52,7 +52,7 @@ void BufferEncodings::validate(char_type c, LaTeXFeatures & features, bool for_m
        CharInfo const & ci = Encodings::unicodeCharInfo(c);
        if (ci.isUnicodeSymbol()) {
                // In mathed, c could be used both in textmode and mathmode
-               docstring const textcommand = ci.textcommand();
+               docstring const textcommand = ci.textCommand();
                bool const math_mode = for_mathed && isMathCmd(c);
                bool const use_math = math_mode ||
                                      (!for_mathed && textcommand.empty());
@@ -65,9 +65,9 @@ void BufferEncodings::validate(char_type c, LaTeXFeatures & features, bool for_m
                // and if we do not use unicode-math
                if ((math_mode && !unicode_math)
                     || (use_math && !plain_utf8)) {
-                       string const mathpreamble = ci.mathpreamble();
+                       string const mathpreamble = ci.mathPreamble();
                        if (!mathpreamble.empty()) {
-                               if (ci.mathfeature()) {
+                               if (ci.mathFeature()) {
                                        string feats = mathpreamble;
                                        while (!feats.empty()) {
                                                string feat;
@@ -80,9 +80,9 @@ void BufferEncodings::validate(char_type c, LaTeXFeatures & features, bool for_m
                }
                // with utf8-plain, we do not load packages (see #7766)
                if (use_text && !plain_utf8) {
-                       string const textpreamble = ci.textpreamble();
+                       string const textpreamble = ci.textPreamble();
                        if (!textpreamble.empty()) {
-                               if (ci.textfeature()) {
+                               if (ci.textFeature()) {
                                        string feats = textpreamble;
                                        while (!feats.empty()) {
                                                string feat;