summaryrefslogtreecommitdiff
path: root/sw/source/core/edit/acorrect.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/edit/acorrect.cxx')
-rw-r--r--sw/source/core/edit/acorrect.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/edit/acorrect.cxx b/sw/source/core/edit/acorrect.cxx
index d65607ef634e..8986d0a3f20c 100644
--- a/sw/source/core/edit/acorrect.cxx
+++ b/sw/source/core/edit/acorrect.cxx
@@ -550,11 +550,10 @@ bool SwAutoCorrDoc::TransliterateRTLWord( sal_Int32& rSttPos, sal_Int32 nEndPos
OUString sConverted;
if (pFormatter && !sWord.isEmpty())
{
- Color* pColor = nullptr;
- Color** ppColor = &pColor;
+ const Color* pColor = nullptr;
// Send text as NatNum12 prefix
OUString sPrefix("[NatNum12 " + sDisambiguatedWord.makeStringAndClear() + "]0");
- if (pFormatter->GetPreviewString(sPrefix, 0, sConverted, ppColor, LANGUAGE_USER_HUNGARIAN_ROVAS))
+ if (pFormatter->GetPreviewString(sPrefix, 0, sConverted, &pColor, LANGUAGE_USER_HUNGARIAN_ROVAS))
bRet = true;
}