From 08a840b139b7ee6e33412073041d0136ba76f356 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Mon, 1 May 2017 20:02:25 -0400 Subject: [PATCH] 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. --- src/OutputParams.h | 2 +- src/output_latex.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OutputParams.h b/src/OutputParams.h index ddb3482b02..1631dac9d0 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -265,7 +265,7 @@ public: 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 */ bool dryrun; diff --git a/src/output_latex.cpp b/src/output_latex.cpp index a479b2803e..5f834e98a7 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1341,7 +1341,7 @@ void latexParagraphs(Buffer const & buf, if (layout.intitle) { if (already_title) { - if (!gave_layout_warning) { + if (!gave_layout_warning && !runparams.dryrun) { gave_layout_warning = true; frontend::Alert::warning(_("Error in latexParagraphs"), bformat(_("You are using at least one "