X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEncoding.cpp;h=dab24b72ddecf3c2c6eb0a8ba170cab1cf905e92;hb=26ba2a65838731ce639a09539f617cb0f0be3b22;hp=d0610efb2e2af646dd60f2355dab5d65744bfa42;hpb=b5b3f56abb036edf2e03c6449e5ae16d576401ad;p=lyx.git diff --git a/src/Encoding.cpp b/src/Encoding.cpp index d0610efb2e..dab24b72dd 100644 --- a/src/Encoding.cpp +++ b/src/Encoding.cpp @@ -459,13 +459,13 @@ docstring Encodings::fromLaTeXCommand(docstring const & cmd, int cmdtype, // the prefix of some command in the unicodesymbols file docstring subcmd = cmd.substr(i, j - i + 1); - CharInfoMap::const_iterator it = unicodesymbols.begin(); // First part of subcmd which might be a combining character docstring combcmd = (m == j) ? docstring() : cmd.substr(i, m - i + 1); // The combining character of combcmd if it exists - CharInfoMap::const_iterator combining = uniend; size_t unicmd_size = 0; char_type c = 0; + CharInfoMap::const_iterator it = unicodesymbols.begin(); + CharInfoMap::const_iterator combining = uniend; for (; it != uniend; ++it) { if (it->second.deprecated()) continue;