mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
13c6c959c9
commit
dc61ab467a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user