]> git.lyx.org Git - features.git/commitdiff
* src/Text3.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 24 Jul 2007 15:18:21 +0000 (15:18 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 24 Jul 2007 15:18:21 +0000 (15:18 +0000)
- quick fix for bug 4055 (with FIXME comments)

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

src/Text3.cpp

index 5ec6a6051b67a85839b8016f713a9e67efdc680e..ff2f7636af1f467fad6d2f8779c17076ae3c9009 100644 (file)
@@ -1340,6 +1340,12 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
        case LFUN_MATH_MATRIX:
        case LFUN_MATH_DELIM:
        case LFUN_MATH_BIGDELIM: {
+               if (cur.selection())
+                       cur.clearSelection();
+               // FIXME: instead of the above, this one
+               // should be used (but it asserts with Bidi enabled)
+               // cf. http://bugzilla.lyx.org/show_bug.cgi?id=4055
+               // cap::replaceSelection(cur);
                cur.insert(new InsetMathHull(hullSimple));
                checkAndActivateInset(cur, true);
                BOOST_ASSERT(cur.inMathed());