diff options
Diffstat (limited to 'sc/source/ui/miscdlgs/acredlin.cxx')
-rw-r--r-- | sc/source/ui/miscdlgs/acredlin.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx index f07c7e01a57d..c6137a42d1cd 100644 --- a/sc/source/ui/miscdlgs/acredlin.cxx +++ b/sc/source/ui/miscdlgs/acredlin.cxx @@ -278,6 +278,13 @@ void ScAcceptChgDlg::ClearView() nAcceptCount=0; nRejectCount=0; weld::TreeView& rTreeView = pTheView->GetWidget(); + rTreeView.selected_foreach( + [&rTreeView](weld::TreeIter& rEntry) + { + ScRedlinData *pEntryData = reinterpret_cast<ScRedlinData*>(rTreeView.get_id(rEntry).toInt64()); + delete pEntryData; + return false; + }); rTreeView.freeze(); rTreeView.clear(); rTreeView.thaw(); |