diff options
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index e4f04da83504..74c5f6df301a 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1658,7 +1658,7 @@ void ScCheckListBox::GetRecursiveChecked( SvTreeListEntry* pEntry, std::unordere { OUString aLabel = rLabel; GetRecursiveChecked( rChild.get(), vOut, aLabel); - if (!aLabel.isEmpty()) + if (!aLabel.isEmpty() && aLabel != rLabel) vOut.insert( aLabel); } // Let the caller not add the parent alone. |