From bf1af7e3c2b77c63af2cd1b5d23c6fa9bf23db2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Tue, 24 Jul 2007 15:18:21 +0000 Subject: [PATCH] * 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 --- src/Text3.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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());