[Libreoffice-commits] core.git: editeng/source

Eike Rathke (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 16 19:08:59 UTC 2019


 editeng/source/misc/svxacorr.cxx |   14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)

New commits:
commit 8d7ec203956695475c5ce2c3e47a4aa012a48d39
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Wed Oct 16 17:13:30 2019 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Wed Oct 16 21:08:10 2019 +0200

    Resolves: tdf#127961 Add NBSP to quotation marks for all French except fr-CH
    
    Change-Id: I71e8377bf44c2db5ef291d2990528ec16aaf3b44
    Reviewed-on: https://gerrit.libreoffice.org/80909
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Jenkins

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 8b46f0f8e043..8d0d34648540 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -1196,12 +1196,7 @@ void SvxAutoCorrect::InsertQuote( SvxAutoCorrDoc& rDoc, sal_Int32 nInsPos,
 
     if( '\"' == cInsChar )
     {
-        if( eLang.anyOf(
-            LANGUAGE_FRENCH,
-            LANGUAGE_FRENCH_BELGIAN,
-            LANGUAGE_FRENCH_CANADIAN,
-            LANGUAGE_FRENCH_SWISS,
-            LANGUAGE_FRENCH_LUXEMBOURG))
+        if (primary(eLang) == primary(LANGUAGE_FRENCH) && eLang != LANGUAGE_FRENCH_SWISS)
         {
             OUString s( cNonBreakingSpace ); // UNICODE code for no break space
             if( rDoc.Insert( bSttQuote ? nInsPos+1 : nInsPos, s ))
@@ -1241,12 +1236,7 @@ OUString SvxAutoCorrect::GetQuote( SvxAutoCorrDoc const & rDoc, sal_Int32 nInsPo
 
     if( '\"' == cInsChar )
     {
-        if( eLang.anyOf(
-             LANGUAGE_FRENCH,
-             LANGUAGE_FRENCH_BELGIAN,
-             LANGUAGE_FRENCH_CANADIAN,
-             LANGUAGE_FRENCH_SWISS,
-             LANGUAGE_FRENCH_LUXEMBOURG))
+        if (primary(eLang) == primary(LANGUAGE_FRENCH) && eLang != LANGUAGE_FRENCH_SWISS)
         {
             if( bSttQuote )
                 sRet += " ";


More information about the Libreoffice-commits mailing list