Add missing initialization for local variable.

The autoargs variable is random for empty macro argument lists otherwise.
This commit is contained in:
Stephan Witt 2020-02-18 08:59:20 +01:00
parent fe02f151f9
commit f904fb2d61

View File

@ -2077,7 +2077,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
bool const sel = cur.selection();
doInsertInset(cur, this, cmd, true, true);
// Insert auto-insert arguments
bool autoargs, inautoarg = false;
bool autoargs = false, inautoarg = false;
Layout::LaTeXArgMap args = cur.inset().getLayout().args();
Layout::LaTeXArgMap::const_iterator lait = args.begin();
Layout::LaTeXArgMap::const_iterator const laend = args.end();