]> git.lyx.org Git - features.git/commitdiff
Now the cursor is visible while at the rightmost part of a regexp inset.
authorTommaso Cucinotta <tommaso@lyx.org>
Sat, 11 Jun 2011 22:06:06 +0000 (22:06 +0000)
committerTommaso Cucinotta <tommaso@lyx.org>
Sat, 11 Jun 2011 22:06:06 +0000 (22:06 +0000)
Fixing issue 2. reported at: http://permalink.gmane.org/gmane.editors.lyx.devel/136992.

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

src/mathed/InsetMathHull.cpp

index 7be9d7d6ed95a58adab0f15f9cd6eb1e9d078918..4e83162b030a675286ec301ab186ccd22fe639a6 100644 (file)
@@ -439,6 +439,8 @@ void InsetMathHull::metrics(MetricsInfo & mi, Dimension & dim) const
                        dim.wid += 30 + l;
        }
 
+       if (type_ == hullRegexp)
+               dim.wid += 2;
        // make it at least as high as the current font
        int asc = 0;
        int des = 0;