]> git.lyx.org Git - features.git/commitdiff
tex2lyx/preamble.cpp: revert r39962 (the string initialization was already reverted)
authorUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 19:53:29 +0000 (19:53 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Wed, 26 Oct 2011 19:53:29 +0000 (19:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40019 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 964d062ada03464bc9abb07479e98f73bb6c8e29..151efff4c9f29af2b1883841564cc21b5a565cf0 100644 (file)
@@ -571,9 +571,11 @@ void handle_package(Parser &p, string const & name, string const & opts,
 
        else if (name == "fontenc") {
                h_fontencoding = getStringFromVector(options, ",");
-               // as of version LyX 2.0 "T1" is equal to the setting "global"
-               if (h_fontencoding == "T1")
+               /* We could do the following for better round trip support,
+                * but this makes the document less portable, so I skip it:
+               if (h_fontencoding == lyxrc.fontenc)
                        h_fontencoding = "global";
+               */
                options.clear();
        }