mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Improve fix to 57615915
.
Reset pointer to 0 as Georg suggested in #9804.
This commit is contained in:
parent
3978fabaad
commit
32dd44b209
@ -527,7 +527,9 @@ void MathData::detachMacroParameters(DocIterator * cur, const size_type macroPos
|
|||||||
// optional arguments to be put back?
|
// optional arguments to be put back?
|
||||||
pos_type p = macroPos + 1;
|
pos_type p = macroPos + 1;
|
||||||
size_t j = 0;
|
size_t j = 0;
|
||||||
// WARNING: do not use macroInset below, the insert() call in the lopp will invalidate it!
|
// We do not want to use macroInset below, the insert() call in
|
||||||
|
// the loop will invalidate it.
|
||||||
|
macroInset = 0;
|
||||||
for (; j < detachedArgs.size() && j < optionals; ++j) {
|
for (; j < detachedArgs.size() && j < optionals; ++j) {
|
||||||
// another non-empty parameter follows?
|
// another non-empty parameter follows?
|
||||||
bool canDropEmptyOptional = j >= lastNonEmptyOptional;
|
bool canDropEmptyOptional = j >= lastNonEmptyOptional;
|
||||||
|
Loading…
Reference in New Issue
Block a user