mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Fix preview check box for include insets
GuiInclude::initialiseParams() calls InsetCommand::string2params() which calls InsetCommandParams::clear(), however this last function did not reset the special "preview_" parameter. Now this parameter is reset to false as part of clear(). The ParamData class documents (see InsetCommandParams.h) the following: // No parameter may be named "preview", because that is a required // flag for all commands. Thus, we must handle preview_ separately from the other parameters. This commit fixes #11779.
This commit is contained in:
parent
f1694db496
commit
36208d488e
@ -627,6 +627,7 @@ docstring & InsetCommandParams::operator[](string const & name)
|
||||
void InsetCommandParams::clear()
|
||||
{
|
||||
params_.clear();
|
||||
preview(false);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user