mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
Fix caption text y-positioning
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20079 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5c8f9bc525
commit
7e2d8d3955
@ -163,7 +163,8 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
|
||||
labelwidth_ = pi.pain.text(x, y, full_label_, pi.base.font);
|
||||
// add some space to separate the label from the inset text
|
||||
labelwidth_ += 2 * TEXT_TO_INSET_OFFSET;
|
||||
InsetText::draw(pi, x + labelwidth_, y);
|
||||
int const ty = y - ascent() + TEXT_TO_INSET_OFFSET;
|
||||
InsetText::draw(pi, x + labelwidth_, ty);
|
||||
setPosCache(pi, x, y);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user