mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* 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
This commit is contained in:
parent
100aa5d78a
commit
bf1af7e3c2
@ -1340,6 +1340,12 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
case LFUN_MATH_MATRIX:
|
case LFUN_MATH_MATRIX:
|
||||||
case LFUN_MATH_DELIM:
|
case LFUN_MATH_DELIM:
|
||||||
case LFUN_MATH_BIGDELIM: {
|
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));
|
cur.insert(new InsetMathHull(hullSimple));
|
||||||
checkAndActivateInset(cur, true);
|
checkAndActivateInset(cur, true);
|
||||||
BOOST_ASSERT(cur.inMathed());
|
BOOST_ASSERT(cur.inMathed());
|
||||||
|
Loading…
Reference in New Issue
Block a user