rgheck wrote:
Helge Hafting wrote:
Today I split a document in two, so I can publish the content
with two different front pages. [...] All this works very well, except
that I get a bogus error message each time
I do File->Export->Pdf(pdflatex). I get:
Included file 'content.lyx' uses module 'logicalmkup' which is not
used in the parent file.
The message is wrong.
Can you try the attached exceedingly silly patch?
rh
------------------------------------------------------------------------
Index: InsetInclude.cpp
===================================================================
--- InsetInclude.cpp (revision 23755)
+++ InsetInclude.cpp (working copy)
@@ -473,7 +473,7 @@
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."),
Taht patch did the trick - no more bogus error message. Thanks!
Helge Hafting