commit 08a840b139b7ee6e33412073041d0136ba76f356
Author: Scott Kostyshak <[email protected]>
Date: Mon May 1 20:02:25 2017 -0400
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 ddb3482..1631dac 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 a479b28..5f834e9 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 "