From b198a36a363bb6a084407d476942d68ef5fb5e86 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Wed, 10 May 2023 12:43:14 +0200 Subject: [PATCH] Less expensive OP first as this might be called often. --- src/insets/InsetQuotes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetQuotes.cpp b/src/insets/InsetQuotes.cpp index 9896ec85a6..f582360554 100644 --- a/src/insets/InsetQuotes.cpp +++ b/src/insets/InsetQuotes.cpp @@ -1031,11 +1031,11 @@ pair InsetQuotes::isWords() const QuoteStyle style = (style_ == QuoteStyle::Dynamic) ? global_style_ : style_; // in French, thin spaces are added inside double guillemets - if (prefixIs(context_lang_, "fr") - && level_ == QuoteLevel::Primary + if (level_ == QuoteLevel::Primary && (style == QuoteStyle::Swiss || style == QuoteStyle::French - || style == QuoteStyle::FrenchIN)) { + || style == QuoteStyle::FrenchIN) + && prefixIs(context_lang_, "fr")) { // space added by default for all formats length++; } -- 2.39.5