Warn re mixed layouts only for export (#10645)

Do not warn about mixing title layouts while editing with the code
preview pane open.

This commit amends 0b1cf133.
This commit is contained in:
Scott Kostyshak 2017-05-01 20:02:25 -04:00
parent 974d33ad01
commit 08a840b139
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ public:
bool isLastPar; bool isLastPar;
/** whether or not do actual file copying and image conversion /** whether or not to do actual file copying and image conversion
* This mode will be used to preview the source code * This mode will be used to preview the source code
*/ */
bool dryrun; bool dryrun;

View File

@ -1341,7 +1341,7 @@ void latexParagraphs(Buffer const & buf,
if (layout.intitle) { if (layout.intitle) {
if (already_title) { if (already_title) {
if (!gave_layout_warning) { if (!gave_layout_warning && !runparams.dryrun) {
gave_layout_warning = true; gave_layout_warning = true;
frontend::Alert::warning(_("Error in latexParagraphs"), frontend::Alert::warning(_("Error in latexParagraphs"),
bformat(_("You are using at least one " bformat(_("You are using at least one "