]> git.lyx.org Git - features.git/commitdiff
Forgot this in f2d2b7cc7d
authorGeorg Baum <baum@lyx.org>
Sun, 24 Feb 2013 18:43:13 +0000 (19:43 +0100)
committerGeorg Baum <baum@lyx.org>
Sun, 24 Feb 2013 18:43:13 +0000 (19:43 +0100)
src/tex2lyx/text.cpp

index a123f9d0388c5452d868c75fb91fa0519fdf6f3c..61256c6215db760e5a50a1bcb8a9f69fd0c0bb16 100644 (file)
@@ -2430,6 +2430,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                        if (!rem.empty())
                                                output_ert_inset(os,
                                                        to_utf8(rem), context);
+                                       for (set<string>::const_iterator it = req.begin();
+                                            it != req.end(); ++it)
+                                               preamble.registerAutomaticallyLoadedPackage(*it);
                                } else
                                        // we did not find a non-ert version
                                        output_ert_inset(os, name, context);
@@ -3279,6 +3282,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                                os << to_utf8(s);
                                if (!rem.empty())
                                        output_ert_inset(os, to_utf8(rem), context);
+                               for (set<string>::const_iterator it = req.begin();
+                                    it != req.end(); ++it)
+                                       preamble.registerAutomaticallyLoadedPackage(*it);
                        } else
                                // we did not find a non-ert version
                                output_ert_inset(os, command, context);