]> git.lyx.org Git - features.git/commitdiff
* src/insets/insetcharstyle.C: fix bug #3252 (by M. Vermeer):
authorMichael Schmitt <michael.schmitt@teststep.org>
Mon, 26 Mar 2007 19:16:49 +0000 (19:16 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Mon, 26 Mar 2007 19:16:49 +0000 (19:16 +0000)
Cursor is not placed correctly in char style inset

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

src/insets/insetcharstyle.C

index 34f0baf64a7ff329e03c24244d7b593a771861c7..ed3566716b848319d6b22a36ae8e28bda515428d 100644 (file)
@@ -184,7 +184,7 @@ void InsetCharStyle::draw(PainterInfo & pi, int x, int y) const
        getDrawFont(pi.base.font);
        // I don't understand why the above .reduce and .realize aren't
        //needed, or even wanted, here. It just works. -- MV 10.04.2005
-       InsetText::draw(pi, x, y);
+       InsetText::draw(pi, x + TEXT_TO_INSET_OFFSET, y);
        pi.base.font = tmpfont;
 
        int desc = InsetText::descent();