From: Abdelrazak Younes Date: Wed, 5 Sep 2007 20:54:15 +0000 (+0000) Subject: Fix caption text y-positioning X-Git-Tag: 1.6.10~8483 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7e2d8d39556787c010fda8bffd5ebcbf7d04f6fc;p=features.git Fix caption text y-positioning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20079 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetCaption.cpp b/src/insets/InsetCaption.cpp index 7b25e463d1..3505728c93 100644 --- a/src/insets/InsetCaption.cpp +++ b/src/insets/InsetCaption.cpp @@ -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); }