+2000-07-20 Lars Gullik Bjønnes <larsbj@lyx.org>
+
+ * src/paragraph.C (writeFile): NEW_INSETS: possible fix to the
+ layout write problem
+
2000-07-20 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* src/Makefile.am (INCLUDES): remove image directory from include
BufferParams const & params,
char footflag, char dth) const
{
- if (
#ifndef NEW_INSETS
+ if (
footnoteflag != LyXParagraph::NO_FOOTNOTE ||
-#endif
!previous
-#ifndef NEW_INSETS
|| previous->footnoteflag == LyXParagraph::NO_FOOTNOTE
-#endif
) {
-
+#endif
+
#ifndef NEW_INSETS
// The beginning or the end of a footnote environment?
if (footflag != footnoteflag) {
}
os << '\n';
}
- } else {
#ifndef NEW_INSETS
+ } else {
// Dummy layout. This means that a footnote ended.
os << "\n\\end_float ";
footflag = LyXParagraph::NO_FOOTNOTE;
-#else
- lyxerr << "Why don't we have a previous?" << endl;
-#endif
}
-#ifndef NEW_TABULAR
+
+#ifndef NEW_TABULAR
// It might be a table.
if (table){
os << "\\LyXTable\n";
break;
}
}
-
+#endif
+
// now write the next paragraph
if (next)
next->writeFile(buf, os, params, footflag, dth);