[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - cui/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue May 21 09:33:56 UTC 2019


 cui/source/tabpages/autocdlg.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 2ff0b6bd5e549ee97f668e210df1b6911238cb7e
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu May 16 17:24:13 2019 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Tue May 21 11:33:08 2019 +0200

    not much point setting the checkbox on each insertion
    
    Change-Id: Ibc12e52d075c7bc7c33b7c25841cfd122d6c014e
    Reviewed-on: https://gerrit.libreoffice.org/72452
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 354fc5d336f3..ee0ab7f2e37a 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -921,7 +921,6 @@ void OfaAutocorrReplacePage::RefillReplaceBox(bool bFromReset,
             // formatted text is only in Writer
             if (bSWriter || bTextOnly)
             {
-                m_xTextOnlyCB->set_active(bTextOnly);
                 OUString sId;
                 if (!bTextOnly)
                 {
@@ -948,7 +947,6 @@ void OfaAutocorrReplacePage::RefillReplaceBox(bool bFromReset,
             // formatted text is only in Writer
             if (bSWriter || bTextOnly)
             {
-                m_xTextOnlyCB->set_active(elem->IsTextOnly());
                 OUString sId;
                 if (!bTextOnly)
                 {
@@ -980,6 +978,7 @@ void OfaAutocorrReplacePage::RefillReplaceBox(bool bFromReset,
     }
     else
     {
+        m_xTextOnlyCB->set_active(true);
         m_xTextOnlyCB->set_sensitive(false);
     }
 }


More information about the Libreoffice-commits mailing list