]> git.lyx.org Git - features.git/commitdiff
Fix bug 3187 from Martin Vermeer:
authorAbdelrazak Younes <younes@lyx.org>
Tue, 6 Feb 2007 14:23:06 +0000 (14:23 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 6 Feb 2007 14:23:06 +0000 (14:23 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=3187

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17069 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insetcaption.C
src/insets/insetcaption.h

index 2ea714cb6d1ec1f469a5917d8d7a3bb773601854..6cb366e5bd83148d90c1f0c479aff2b2a4d0c00c 100644 (file)
@@ -167,6 +167,12 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
 }
 
 
+void InsetCaption::drawSelection(PainterInfo & pi, int x, int y) const
+{
+       InsetText::drawSelection(pi, x + labelwidth_ , y);
+}
+
+
 void InsetCaption::edit(LCursor & cur, bool left)
 {
        cur.push(*this);
index 78537785980478f91a72d83f84bc971b882704dc..dc87c293243de19e99835669aaa25b6742c8bb8f 100644 (file)
@@ -48,6 +48,8 @@ public:
        ///
        virtual void draw(PainterInfo & pi, int x, int y) const;
        ///
+       void drawSelection(PainterInfo & pi, int x, int y) const;
+       ///
        virtual void edit(LCursor & cur, bool left);
        ///
        virtual InsetBase * editXY(LCursor & cur, int x, int y);