| commit | 42481b165c2fd9814d482b72ca70f51966649c9c | [log] |
|---|---|---|
| author | Caolán McNamara <caolan.mcnamara@collabora.com> | Tue Sep 12 10:23:19 2023 +0100 |
| committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | Fri Sep 22 19:47:51 2023 +0200 |
| tree | ce793a1f3d73674bf5a9b1503b7458ff89af9088 | |
| parent | ce1120eecdafa04b03617dcb88eb6027b6b50679 [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> (cherry picked from commit 5623a25541925b7389ac8203eb35e3d68485b064) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157120 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index fcccc44..b662da41 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1696,6 +1696,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();