]> git.lyx.org Git - features.git/commitdiff
Less expensive OP first as this might be called often.
authorPavel Sanda <sanda@lyx.org>
Wed, 10 May 2023 10:43:14 +0000 (12:43 +0200)
committerPavel Sanda <sanda@lyx.org>
Wed, 10 May 2023 10:43:14 +0000 (12:43 +0200)
src/insets/InsetQuotes.cpp

index 9896ec85a6f98892bffba7cdefeb8c0c19f6a8fa..f5823605543455e820e7fec88a828ced16348efa 100644 (file)
@@ -1031,11 +1031,11 @@ pair<int, int> 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++;
                }