+2005-01-11 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
+
+ * text.C (setHeightOfRow): add a margin at the top and bottom of
+ the document (bug 1761)
+
2005-01-17 Angus Leeming <leeming@lyx.org>
* buffer.C (readFile): prepend the name of the "lyx2lyx" script
maxasc += int(layoutasc * 2 / (2 + pars_[pit].getDepth()));
maxdesc += int(layoutdesc * 2 / (2 + pars_[pit].getDepth()));
+ // Top and bottom margin of the document (only at top-level)
+ if (bv_owner->text() == this) {
+ if (pit == 0 && row.pos() == 0)
+ maxasc += 20;
+ if (pit == pars_.size() - 1 && row.endpos() == par.size())
+ maxdesc += 20;
+ }
+
row.ascent(maxasc + labeladdon);
row.descent(maxdesc);
}