summaryrefslogtreecommitdiff
path: root/sc/source/ui/dbgui/tpsubt.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/dbgui/tpsubt.cxx')
-rw-r--r--sc/source/ui/dbgui/tpsubt.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/dbgui/tpsubt.cxx b/sc/source/ui/dbgui/tpsubt.cxx
index b5acbc6cdb60..4b8c2e1396be 100644
--- a/sc/source/ui/dbgui/tpsubt.cxx
+++ b/sc/source/ui/dbgui/tpsubt.cxx
@@ -590,19 +590,19 @@ IMPL_LINK(ScTpSubTotalOptions, CheckHdl, weld::Button&, rBox, void)
IMPL_LINK(ScTpSubTotalGroup, CheckBoxHdl, weld::Button&, rBox, void)
{
- if (&rBox == mxLbSelectAllColumns.get())
- {
- bool bChecked = mxLbSelectAllColumns->get_active();
+ if (&rBox != mxLbSelectAllColumns.get())
+ return;
- mxLbColumns->all_foreach([&](const weld::TreeIter& rEntry) {
- if ( bChecked )
- mxLbColumns->set_toggle(rEntry, TRISTATE_TRUE);
- else
- mxLbColumns->set_toggle(rEntry, TRISTATE_FALSE);
+ bool bChecked = mxLbSelectAllColumns->get_active();
- return false;
- });
- }
+ mxLbColumns->all_foreach([&](const weld::TreeIter& rEntry) {
+ if ( bChecked )
+ mxLbColumns->set_toggle(rEntry, TRISTATE_TRUE);
+ else
+ mxLbColumns->set_toggle(rEntry, TRISTATE_FALSE);
+
+ return false;
+ });
}
ScTpSubTotalGroup1::~ScTpSubTotalGroup1()