From: Martin Vermeer Date: Tue, 18 Sep 2007 20:18:50 +0000 (+0000) Subject: Pick up some stitches dropped by Abdel ;-) X-Git-Tag: 1.6.10~8295 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc23701244f86ee91a82788cbefed396fee1f2d4;p=features.git Pick up some stitches dropped by Abdel ;-) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20353 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetCollapsable.cpp b/src/insets/InsetCollapsable.cpp index 3dfdd6771a..b0fdfb8b99 100644 --- a/src/insets/InsetCollapsable.cpp +++ b/src/insets/InsetCollapsable.cpp @@ -295,7 +295,7 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const desc -= 3; const int xx1 = x + TEXT_TO_INSET_OFFSET - 1; - const int xx2 = x + textdim.wid - 2 * TEXT_TO_INSET_OFFSET - 1; + const int xx2 = x + textdim.wid - TEXT_TO_INSET_OFFSET + 1; pi.pain.line(xx1, y + desc - 4, xx1, y + desc, layout_.labelfont.color()); @@ -330,14 +330,14 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const s, font, Color::none, Color::none); } - // a visual clue when the cursor is inside the inset + // a visual cue when the cursor is inside the inset Cursor & cur = pi.base.bv->cursor(); if (cur.isInside(this)) { y -= ascent(); y += 3; pi.pain.line(xx1, y + 4, xx1, y, layout_.labelfont.color()); pi.pain.line(xx1 + 4, y, xx1, y, layout_.labelfont.color()); - pi.pain.line(xx2, y + 4, x + textdim.wid - 3, y, + pi.pain.line(xx2, y + 4, xx2, y, layout_.labelfont.color()); pi.pain.line(xx2 - 4, y, xx2, y, layout_.labelfont.color());