]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathData.cpp
Cmake export tests: Added sublabel handling also to revertedTests
[lyx.git] / src / mathed / MathData.cpp
index 01da6085d113890660938c07b2fed5ffc41e433d..7e302c8ac7b8655f860fb307f8bde1812a69b79e 100644 (file)
@@ -527,7 +527,9 @@ void MathData::detachMacroParameters(DocIterator * cur, const size_type macroPos
        // optional arguments to be put back?
        pos_type p = macroPos + 1;
        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) {
                // another non-empty parameter follows?
                bool canDropEmptyOptional = j >= lastNonEmptyOptional;