]> git.lyx.org Git - features.git/commit
Fix preview check box for include insets
authorScott Kostyshak <skostysh@lyx.org>
Wed, 11 Mar 2020 19:02:22 +0000 (15:02 -0400)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:53 +0000 (15:48 +0200)
commite0c02c39d869c49125c0a69e269c943d558f5d25
treecb11e7e2639a9991914725e0aa86f620f6335ddb
parent2876b2156f354bac01e68d291f8fb2a0157ceb93
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.
src/insets/InsetCommandParams.cpp