mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
Correctly restore a dissolved macro inset on undo (bug #6678).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34454 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
eaf00dbea8
commit
a7795cf303
@ -296,7 +296,8 @@ void Undo::Private::doRecordUndo(UndoKind kind,
|
|||||||
// fill in the real data to be saved
|
// fill in the real data to be saved
|
||||||
if (cell.inMathed()) {
|
if (cell.inMathed()) {
|
||||||
// simply use the whole cell
|
// simply use the whole cell
|
||||||
undo.array = new MathData(cell.cell());
|
MathData & ar = cell.cell();
|
||||||
|
undo.array = new MathData(ar.buffer(), ar.begin(), ar.end());
|
||||||
} else {
|
} else {
|
||||||
// some more effort needed here as 'the whole cell' of the
|
// some more effort needed here as 'the whole cell' of the
|
||||||
// main Text _is_ the whole document.
|
// main Text _is_ the whole document.
|
||||||
|
@ -391,7 +391,9 @@ void MathData::updateMacros(Cursor * cur, MacroContext const & mc)
|
|||||||
if (!macroInset || macroInset->name_.empty()
|
if (!macroInset || macroInset->name_.empty()
|
||||||
|| macroInset->name_[0] == '^'
|
|| macroInset->name_[0] == '^'
|
||||||
|| macroInset->name_[0] == '_'
|
|| macroInset->name_[0] == '_'
|
||||||
|| macroInset->name() == edited_name)
|
|| (macroInset->name() == edited_name
|
||||||
|
&& macroInset->displayMode() ==
|
||||||
|
MathMacro::DISPLAY_UNFOLDED))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// get macro
|
// get macro
|
||||||
|
@ -60,6 +60,7 @@ What's new
|
|||||||
|
|
||||||
* USER INTERFACE
|
* USER INTERFACE
|
||||||
|
|
||||||
|
- Correctly restore a dissolved macro inset on undo (bug 6678).
|
||||||
|
|
||||||
|
|
||||||
* DOCUMENTATION AND LOCALIZATION
|
* DOCUMENTATION AND LOCALIZATION
|
||||||
|
Loading…
Reference in New Issue
Block a user