]> git.lyx.org Git - features.git/commitdiff
Fix silly mistake uncovered by Helge.
authorRichard Heck <rgheck@comcast.net>
Sun, 16 Mar 2008 15:49:41 +0000 (15:49 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 16 Mar 2008 15:49:41 +0000 (15:49 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23774 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetInclude.cpp

index c0ce30f8b88668cbe6d0935ef859c7922b47dffc..37ffc6fe9a097b29b03a0f376be8c38ebf38a3b8 100644 (file)
@@ -487,7 +487,7 @@ int InsetInclude::latex(odocstream & os, OutputParams const & runparams) const
                        string const module = *it;
                        vector<string>::const_iterator found =
                                find(masterModules.begin(), masterModules.end(), module);
-                       if (found != masterModules.end()) {
+                       if (found == masterModules.end()) {
                                docstring text = bformat(_("Included file `%1$s'\n"
                                        "uses module `%2$s'\n"
                                        "which is not used in parent file."),