From 7e2d8d39556787c010fda8bffd5ebcbf7d04f6fc Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 5 Sep 2007 20:54:15 +0000 Subject: [PATCH] Fix caption text y-positioning git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20079 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetCaption.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.39.2