]> git.lyx.org Git - features.git/commitdiff
Fix bug 845 (now really).
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 18 Feb 2007 15:37:53 +0000 (15:37 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Sun, 18 Feb 2007 15:37:53 +0000 (15:37 +0000)
* src/encoding.C
(Encoding::validate): Add the preamble stuff even if c can be encoded
in this encoding, since the inputenc package only maps the code point
c to a command, it does not make this command available.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17239 a592a061-630c-0410-9148-cb99ea01b6c8

src/encoding.C

index 0c0e678d470a8adc107b6b763c1672818d6d7e18..a4a5f4932ae2f80bd82c31125079373e2bdcec37 100644 (file)
@@ -262,13 +262,9 @@ docstring const Encoding::latexChar(char_type c) const
 
 void Encoding::validate(char_type c, LaTeXFeatures & features) const
 {
-       if (c < start_encodable_)
-               return;
-
-       if (encodable_.find(c) != encodable_.end())
-               return;
-
-       // c cannot be encoded in this encoding
+       // Add the preamble stuff even if c can be encoded in this encoding,
+       // since the inputenc package only maps the code point c to a command,
+       // it does not make this command available.
        CharInfoMap::const_iterator const it = unicodesymbols.find(c);
        if (it != unicodesymbols.end() && !it->second.preamble.empty()) {
                if (it->second.feature)