]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInclude.cpp
Fix GRAPHICS_EDIT of InsetGraphics
[lyx.git] / 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."),