From: Jürgen Spitzmüller Date: Tue, 24 Jul 2007 15:18:21 +0000 (+0000) Subject: * src/Text3.cpp: X-Git-Tag: 1.6.10~9067 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=bf1af7e3c2b77c63af2cd1b5d23c6fa9bf23db2e;p=features.git * src/Text3.cpp: - 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 --- diff --git a/src/Text3.cpp b/src/Text3.cpp index 5ec6a6051b..ff2f7636af 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -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());