]> git.lyx.org Git - features.git/commitdiff
Pick up some stitches dropped by Abdel ;-)
authorMartin Vermeer <martin.vermeer@hut.fi>
Tue, 18 Sep 2007 20:18:50 +0000 (20:18 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Tue, 18 Sep 2007 20:18:50 +0000 (20:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20353 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetCollapsable.cpp

index 3dfdd6771a3d856ec793a550679c6c5f96ca8fa3..b0fdfb8b99a217926ef45baf8cfd00835e4597ba 100644 (file)
@@ -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());