mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Add missing initialization for local variable.
The autoargs variable is random for empty macro argument lists otherwise.
This commit is contained in:
parent
fe02f151f9
commit
f904fb2d61
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user