summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2019-12-25 18:07:11 +0100
committerLászló Németh <nemeth@numbertext.org>2019-12-28 18:26:47 +0100
commit0d52da4637b563c175cd21d04a639160441436ef (patch)
tree872de2debb8565ff028491636310178ab4409cfc /editeng
parent0f01ea20251c397b0acc1690baa2dc543d1fd91a (diff)
tdf#54409 fix AutoCorrect with Unicode quotation marks
Now single or double typographical quotation marks don't break automatic correction of the quoted words. For example, ‘acn -> ‘can, acn’ -> can’, “acn” -> “can”. Change-Id: I7f895414be4c3bbc9a3914df83d93cf28b4311a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85812 Reviewed-by: László Németh <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index faea050bbe17..f6db80ba0a25 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -172,6 +172,10 @@ static bool lcl_IsSymbolChar( CharClass const & rCC, const OUString& rTxt,
static bool lcl_IsInAsciiArr( const char* pArr, const sal_Unicode c )
{
+ // tdf#54409 check also typographical quotation marks in the case of skipped ASCII quotation marks
+ if ( 0x2018 <= c && c <= 0x201F && (pArr == sImplSttSkipChars || pArr == sImplEndSkipChars) )
+ return true;
+
bool bRet = false;
for( ; *pArr; ++pArr )
if( *pArr == c )