mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Please Andre' and return early
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20971 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d3752672b3
commit
b35a4f12fd
@ -404,17 +404,19 @@ bool Encodings::isCombiningChar(char_type c)
|
||||
bool Encodings::isKnownLangChar(char_type c, string & preamble)
|
||||
{
|
||||
CharInfoMap::const_iterator const it = unicodesymbols.find(c);
|
||||
if (it != unicodesymbols.end()) {
|
||||
if (it->second.preamble != "textgreek" &&
|
||||
it->second.preamble != "textcyr")
|
||||
return false;
|
||||
if (preamble.empty()) {
|
||||
preamble = it->second.preamble;
|
||||
return true;
|
||||
}
|
||||
return it->second.preamble == preamble;
|
||||
|
||||
if (it == unicodesymbols.end())
|
||||
return false;
|
||||
|
||||
if (it->second.preamble != "textgreek" &&
|
||||
it->second.preamble != "textcyr")
|
||||
return false;
|
||||
|
||||
if (preamble.empty()) {
|
||||
preamble = it->second.preamble;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return it->second.preamble == preamble;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user