summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/spellcheckcontext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-06-17 16:00:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-17 17:00:11 +0200
commitc78193b32152122e9b71151b1b463b2dff99f42f (patch)
tree72dcf399927ea7b4dd0bcb53829f31301272f3f8 /sc/source/ui/view/spellcheckcontext.cxx
parent69e5d752ef20f5cd5b3a429a3546ae46bbb5f62a (diff)
create getter for ScCellValue::mpEditText
so we can assert that it has the correct tag type Change-Id: I984c22ae2527d652f2d4194227dc1173793300c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136054 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/spellcheckcontext.cxx')
-rw-r--r--sc/source/ui/view/spellcheckcontext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/spellcheckcontext.cxx b/sc/source/ui/view/spellcheckcontext.cxx
index 1b29c17371af..b18483aa8817 100644
--- a/sc/source/ui/view/spellcheckcontext.cxx
+++ b/sc/source/ui/view/spellcheckcontext.cxx
@@ -330,7 +330,7 @@ void SpellCheckContext::ensureResults(SCCOL nCol, SCROW nRow)
if (eType == CELLTYPE_STRING)
mpEngine->SetText(aCell.getSharedString()->getString());
else
- mpEngine->SetText(*aCell.mpEditText);
+ mpEngine->SetText(*aCell.getEditText());
// it has to happen after we set text
mpEngine->SetDefaultItem(SvxLanguageItem(eCellLang, EE_CHAR_LANGUAGE));