diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 11d84bbd92..a26eed6f50 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2001-03-13 Dekel Tsur + + * insetinclude.C (Latex): Do not exit when the textclass of the + included file differ from the textclass of the parent file. + 2001-03-12 Angus Leeming * ExternalTemplate.C (read): the reading of external insets now checks diff --git a/src/insets/insetinclude.C b/src/insets/insetinclude.C index 47cd6f2e60..556634b91e 100644 --- a/src/insets/insetinclude.C +++ b/src/insets/insetinclude.C @@ -166,14 +166,14 @@ int InsetInclude::Latex(Buffer const * buffer, ostream & os, Buffer * tmp = bufferlist.getBuffer(getFileName()); if (tmp->params.textclass != buffer->params.textclass) { - lyxerr << "ERROR: Cannot handle include file `" + lyxerr << "WARNING: Included file `" << MakeDisplayPath(getFileName()) - << "' which has textclass `" + << "' has textclass `" << textclasslist.NameOfClass(tmp->params.textclass) - << "' instead of `" + << "' while parent file has textclass `" << textclasslist.NameOfClass(buffer->params.textclass) << "'." << endl; - return 0; + //return 0; } // write it to a file (so far the complete file)