If the "force" flag is in effect and a textmode command from the unicodesymbols

file is used, don't add the \lyxmathsym definition to the preamble if we
already are in textmode. This hopefully smashes all weird cases.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26604 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2008-09-28 21:57:31 +00:00
parent 8f76634f10
commit d7daeb752e

View File

@ -410,7 +410,8 @@ bool Encodings::latexMathChar(char_type c, bool mathmode,
if (!encoding || command.empty()) {
command = it->second.textcommand;
addTextCmd(c);
} else if (mathmode)
}
if (mathmode)
addMathSym(c);
}
return use_math;
@ -559,10 +560,6 @@ void Encodings::validate(char_type c, LaTeXFeatures & features, bool for_mathed)
} else
features.addPreambleSnippet(it->second.textpreamble);
}
if (for_mathed) {
features.require("relsize");
features.require("lyxmathsym");
}
}
}
if (for_mathed && isMathSym(c)) {