cui/source/options/optjava.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 94971b17131de5294efe543a3fa257fa9b6c3bd1
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Tue Aug 4 20:02:40 2020 +0100
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Mon Nov 30 18:27:28 2020 +0100

    tdf#135367 enable_toggle_buttons sets SvTreeFlags::CHKBTN
    
    designating that the special auto-sized toggle column is in use
    
    Change-Id: I23aa927c56e706590f397d15ef7329d20e0b18a9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100136
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106892
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index d107eaeeb28f..25be071fa8fc 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -360,7 +360,7 @@ void SvxJavaOptionsPage::AddJRE( JavaInfo const * _pInfo )
 #if HAVE_FEATURE_JAVA
     int nPos = m_xJavaList->n_children();
     m_xJavaList->append();
-    m_xJavaList->set_toggle(nPos, TRISTATE_FALSE, 0);
+    m_xJavaList->set_toggle(nPos, TRISTATE_FALSE);
     m_xJavaList->set_text(nPos, _pInfo->sVendor, 1);
     m_xJavaList->set_text(nPos, _pInfo->sVersion, 2);
     OUString sFeature;
@@ -383,7 +383,7 @@ void SvxJavaOptionsPage::HandleCheckEntry(int nCheckedRow)
     for (int i = 0, nCount = m_xJavaList->n_children(); i < nCount; ++i)
     {
         // we have radio button behavior -> so uncheck the other entries
-        m_xJavaList->set_toggle(i, i == nCheckedRow ? TRISTATE_TRUE : 
TRISTATE_FALSE, 0);
+        m_xJavaList->set_toggle(i, i == nCheckedRow ? TRISTATE_TRUE : 
TRISTATE_FALSE);
     }
 }
 
@@ -522,7 +522,7 @@ bool SvxJavaOptionsPage::FillItemSet( SfxItemSet* 
/*rCoreSet*/ )
     sal_uInt32 nCount = m_xJavaList->n_children();
     for (sal_uInt32 i = 0; i < nCount; ++i)
     {
-        if (m_xJavaList->get_toggle(i, 0) == TRISTATE_TRUE)
+        if (m_xJavaList->get_toggle(i) == TRISTATE_TRUE)
         {
             JavaInfo const * pInfo;
             if ( i < m_parJavaInfo.size() )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to