summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-30 15:50:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-30 20:12:21 +0000
commitf4a24366dd111c7c7434f4a887d7097ced6b5f55 (patch)
tree3dd1653086bfeeb07d79b1729e1995235d69742c /vcl/source/app
parent72f3df889a950218c9e801aa93bb2e755d26f3e1 (diff)
tdf#150380 Calc crash clicking on the title of the Border Color toolbar popdown
There is probably a better fix for this, but we have a popup inside a popup here, so some weirdness is to be expected. At least it doesn't crash now. Change-Id: Ifaa928c47c3cbfaec8379f01f007b0c1daf4e5a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146359 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 733d78179500..259192c854cb 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1322,7 +1322,13 @@ void SalInstanceContainer::move(weld::Widget* pWidget, weld::Container* pNewPare
assert(!pNewParent || pNewVclParent);
vcl::Window* pVclWindow = pVclWidget->getWidget();
if (pNewVclParent)
- pVclWindow->SetParent(pNewVclParent->getWidget());
+ {
+ vcl::Window* pNew = pNewVclParent->getWidget();
+ if (!pNew->isDisposed())
+ pVclWindow->SetParent(pNewVclParent->getWidget());
+ else
+ SAL_WARN("vcl", "ignoring move because new parent is already disposed");
+ }
else
{
pVclWindow->Hide();