diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-04 20:02:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-05 12:38:23 +0200 |
commit | d32dfe40f18904bbd30f497d0a2f546d58d6041b (patch) | |
tree | 235e7f90388edb0d9e6154d62614d4ca6c3a54a0 /cui/source/options | |
parent | 2bf59c0b9e1e73e0845d0179e1d513baf89276b8 (diff) |
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 <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/optjava.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 16d30cf5bdce..6454c238fabc 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -353,7 +353,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); @@ -372,7 +372,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); } } @@ -500,7 +500,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() ) |