diff --git a/src/ChangeLog b/src/ChangeLog index 617d99e32f..58c604d3c2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2001-12-04 John Levon + + * text.C: fix chapter label offset ! + 2001-12-04 John Levon * lyxtext.h: diff --git a/src/text.C b/src/text.C index 33aa39f811..d009dbcc85 100644 --- a/src/text.C +++ b/src/text.C @@ -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); }