mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 14:29:21 +00:00
Fix crash when selecting part of a macro and trying to resume macro-mode editing.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30395 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bca1c1b92b
commit
ebe9b42279
@ -1569,6 +1569,8 @@ bool InsetMathNest::interpretChar(Cursor & cur, char_type const c)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selClearOrDel(cur);
|
||||||
|
|
||||||
MathMacro const * macro = cur.inset().asInsetMath()->asMacro();
|
MathMacro const * macro = cur.inset().asInsetMath()->asMacro();
|
||||||
if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
|
if (macro && macro->displayMode() == MathMacro::DISPLAY_UNFOLDED) {
|
||||||
// resume macro_mode
|
// resume macro_mode
|
||||||
@ -1580,8 +1582,6 @@ bool InsetMathNest::interpretChar(Cursor & cur, char_type const c)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
selClearOrDel(cur);
|
|
||||||
|
|
||||||
if (c == '\n') {
|
if (c == '\n') {
|
||||||
if (currentMode() <= InsetMath::TEXT_MODE)
|
if (currentMode() <= InsetMath::TEXT_MODE)
|
||||||
cur.insert(c);
|
cur.insert(c);
|
||||||
|
Loading…
Reference in New Issue
Block a user