mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
chapter.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3145 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
7eace1d85b
commit
09c0e4c833
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user