}
// Otherwise we don't drop an empty optional, put it back normally
- MathData optarg;
+ MathData optarg(buffer_);
asArray(from_ascii("[]"), optarg);
MathData & arg = detachedArgs[j];
// In the math parser we remove empty braces in the base
// of a script inset, but we have to restore them here.
if (scriptInset->nuc().empty()) {
- MathData ar;
+ MathData ar(buffer_);
scriptInset->nuc().push_back(
MathAtom(new InsetMathBrace(ar)));
}
// fill up empty optional parameters
while (params.size() < numOptionalParams)
- params.push_back(MathData());
+ params.push_back(MathData(buffer_));
}
}
} else {
// the simplest case: plain inset
- MathData array;
+ MathData array(buffer_);
array.insert(0, cell);
params.push_back(array);
}