diff options
author | Eike Rathke <erack@redhat.com> | 2019-10-16 17:13:30 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-10-16 21:08:10 +0200 |
commit | 8d7ec203956695475c5ce2c3e47a4aa012a48d39 (patch) | |
tree | 565cf5452f25975aefbfe7c020555cf099fb4e2e /editeng/source/misc | |
parent | c69fa8991a56a06df7cd0101aa8d01bffec8c85f (diff) |
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@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
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 += " "; |