cui/source/dialogs/SpellDialog.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 33e85dfbd987b53181737ac678bfab039cdfd4cc
Author:     Justin Luth <[email protected]>
AuthorDate: Sat Sep 27 17:05:18 2025 -0400
Commit:     Justin Luth <[email protected]>
CommitDate: Sun Sep 28 00:47:33 2025 +0200

    tdf#126827 cui SpellDialog: markNexterror - disable Correct buttons
    
    At the end of a spell check, the correct and correctAll buttons
    were the only ones still enabled, even though they can do nothing.
    
    When markNextError doesn't find an error to mark
    it disables most of the buttons,
    but it doesn't disable the Correct or CorrectAll buttons
    (probably because it shouldn't enable them when an error IS marked).
    
    Although it shouldn't enable them,
    it ought to disable them along with all the others.
    
    Note that if the last word of the sentence is a misspelling,
    then NONE of the buttons will be disabled.
    I'm ignoring that inconsistency...
    
    Change-Id: Iad9eb5b3bf80a9ae63e7b31b0d00a022181be380
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191573
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <[email protected]>

diff --git a/cui/source/dialogs/SpellDialog.cxx 
b/cui/source/dialogs/SpellDialog.cxx
index 27d328d8f3af..c0f145fc568c 100644
--- a/cui/source/dialogs/SpellDialog.cxx
+++ b/cui/source/dialogs/SpellDialog.cxx
@@ -1746,6 +1746,11 @@ bool SentenceEditWindow_Impl::MarkNextError( bool 
bIgnoreCurrentError, const css
     pSpellDialog->m_xAutoCorrPB->set_sensitive(bRet);
     pSpellDialog->m_xAddToDictMB->set_sensitive(bRet);
     pSpellDialog->m_xAddToDictPB->set_sensitive(bRet);
+    if (!bRet)
+    {
+        pSpellDialog->m_xChangePB->set_sensitive(bRet);
+        pSpellDialog->m_xChangeAllPB->set_sensitive(bRet);
+    }
     return bRet;
 }
 

Reply via email to