diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-09-12 10:23:19 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-09-14 18:31:25 +0200 |
commit | 5623a25541925b7389ac8203eb35e3d68485b064 (patch) | |
tree | e6917eae8eee62ed81ea4b47561de2dc5fe6d71c /cui | |
parent | 5587c422fa0f8f93849cb2eabbf5594e11819b50 (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/+/156745
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/SpellDialog.cxx | 2 |
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(); |