Kaydet (Commit) 38f9bb33 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

prevent crash while disposing ListControl when children are disposed

Change-Id: I9e69d0b29ab41428d87bf37edeebe652f7e9c297
Reviewed-on: https://gerrit.libreoffice.org/43251Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 0448c3c9
......@@ -45,6 +45,12 @@ void ListControl::dispose()
void ListControl::RecalcAll()
{
// avoid recalculating while we are disposing
// children. This just leads to complex invalid memory
// access patterns that are not fixable.
if (IsDisposed())
return;
sal_Int32 nTotalHeight = 0;
for (const auto& item : maEntries)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment