summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-09-12 10:23:19 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-09-12 12:43:36 +0200
commitb65c770d095f1c3c6ae68df699b2055a4596fe5a (patch)
tree9d677aab5bb0b9e9e0c2dfe52265458c73a260a0
parentf9f5f80c758ca5f690827bc045b8ef66e16a46a2 (diff)
tdf#157148 ensure we auto-scroll to current location to make it visible
Change-Id: I03286c10e488adf3a882fa7fe2813724f27c66f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156837 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--cui/source/dialogs/SpellDialog.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx
index 09b8a9fc43f9..692c8e4512d1 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1704,6 +1704,8 @@ void SentenceEditWindow_Impl::MoveErrorMarkTo(sal_Int32 nStart, sal_Int32 nEnd,
if (!bCurrentSelectionInRange)
{
m_xEditView->SetSelection(ESelection(0, nStart));
+ // tdf#157148 ensure current location is auto-scrolled to be visible
+ m_xEditView->ShowCursor();
}
Invalidate();