+/**
+ * \file lyxrow_funcs.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Lars Gullik Bjønnes
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#include <config.h>
#include "lyxrow_funcs.h"
}
-namespace {
-
-bool nextRowIsAllInset(Paragraph const & par, pos_type last)
-{
- if (last + 1 >= par.size())
- return false;
-
- if (!par.isInset(last + 1))
- return false;
-
- InsetOld const * i = par.getInset(last + 1);
- return i->needFullRow() || i->display();
-}
-
-} // anon namespace
-
-
pos_type lastPrintablePos(Paragraph const & par, RowList::iterator rit)
{
pos_type const last = lastPos(par, rit);
if (isParEnd(par, rit))
return last;
- if (!nextRowIsAllInset(par, last) && par.isSeparator(last))
- return last - 1;
-
return last;
}