chapter.diff

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3145 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2001-12-04 16:35:38 +00:00
parent 7eace1d85b
commit 09c0e4c833
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-12-04 John Levon <moz@compsoc.man.ac.uk>
* text.C: fix chapter label offset !
2001-12-04 John Levon <moz@compsoc.man.ac.uk>
* lyxtext.h:

View File

@ -3316,7 +3316,7 @@ void LyXText::paintFirstRow(DrawRowParams & p)
lyxfont::width(str, font);
}
p.pain->text(int(x), p.yo +
p.pain->text(int(x),
p.yo + p.row->baseline() -
p.row->ascent_of_text() - maxdesc,
str, font);
@ -3325,9 +3325,10 @@ void LyXText::paintFirstRow(DrawRowParams & p)
if (is_rtl) {
x = ww - leftMargin(p.bv, p.row)
+ lyxfont::width(layout.labelsep, font);
} else
} else {
x = p.x - lyxfont::width(layout.labelsep, font)
- lyxfont::width(str, font);
}
p.pain->text(int(x), p.yo + p.row->baseline(), str, font);
}