]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCaption.cpp
* TextMetrics::draw(): withdraw first row ascent before drawing because the conventio...
[lyx.git] / src / insets / InsetCaption.cpp
index 3505728c937d0fa39e588a4777f794640e1dcaa7..7b25e463d1723345b9cedcc3e9579c46633944c8 100644 (file)
@@ -163,8 +163,7 @@ 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;
-       int const ty  = y - ascent() + TEXT_TO_INSET_OFFSET;
-       InsetText::draw(pi, x + labelwidth_, ty);
+       InsetText::draw(pi, x + labelwidth_, y);
        setPosCache(pi, x, y);
 }