Fix bug 3233

* src/TextMetrics.C
	(TextMetrics::setHeightOfRow): correctly account for sectioning
	environments in order to add the topsep space before them.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17335 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2007-02-24 23:58:16 +00:00
parent 13c6c959c9
commit dc61ab467a

View File

@ -707,14 +707,13 @@ void TextMetrics::setHeightOfRow(pit_type const pit,
// environment.
pit_type prev = depthHook(pit, pars, par.getDepth());
if (prev != pit) {
Paragraph const & prevpar = pars[prev];
if (prevpar.layout() == layout
&& prevpar.getDepth() == par.getDepth()
&& prevpar.getLabelWidthString()
Paragraph const & prevpar = pars[prev];
if (prev != pit
&& prevpar.layout() == layout
&& prevpar.getDepth() == par.getDepth()
&& prevpar.getLabelWidthString()
== par.getLabelWidthString()) {
layoutasc = layout->itemsep * dh;
}
layoutasc = layout->itemsep * dh;
} else if (pit != 0 || row.pos() != 0) {
if (layout->topsep > 0)
layoutasc = layout->topsep * dh;