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:
Abdelrazak Younes 2007-09-05 20:54:15 +00:00
parent 5c8f9bc525
commit 7e2d8d3955

View File

@ -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);
}