From fff190773fd3cec575fd5cf86df2742946e38fe5 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 18 Feb 2007 15:37:53 +0000 Subject: [PATCH] Fix bug 845 (now really). * 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 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/encoding.C b/src/encoding.C index 0c0e678d47..a4a5f4932a 100644 --- a/src/encoding.C +++ b/src/encoding.C @@ -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) -- 2.39.5