The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit a8563a0f028aafcf90c994f032eb59c4cbbb4077
Author: Uwe Stöhr <[email protected]>
Date:   Sun Feb 17 04:26:56 2013 +0100

    Preamble.cpp: code simplification

diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
index fead3b1..148c9ab 100644
--- a/src/tex2lyx/Preamble.cpp
+++ b/src/tex2lyx/Preamble.cpp
@@ -761,9 +761,6 @@ void Preamble::handle_package(Parser &p, string const & 
name,
                        h_font_math = "minion-ntxm";
        }
 
-       if (name == "refstyle")
-               h_use_refstyle = "1";
-
        // after the detection and handling of special cases, we can remove the
        // fonts, otherwise they would appear in the preamble, see bug #7856
        if (is_known(name, known_roman_fonts) || is_known(name, 
known_sans_fonts)
@@ -900,6 +897,8 @@ void Preamble::handle_package(Parser &p, string const & 
name,
        else if (is_known(name, known_lyx_packages) && options.empty()) {
                if (name == "splitidx")
                        h_use_indices = "true";
+               if (name == "refstyle")
+                       h_use_refstyle = "1";
                if (!in_lyx_preamble) {
                        h_preamble << package_beg_sep << name
                                   << package_mid_sep << "\\usepackage{"

-----------------------------------------------------------------------

Summary of changes:
 src/tex2lyx/Preamble.cpp |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to