diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-04 12:02:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-04 15:33:36 +0200 |
commit | e4514e65399a1e0398ef94efed6fa1774cff7ea6 (patch) | |
tree | f7e0cd3b74c3a16f23654e60fc3e4b6343553101 /svtools | |
parent | 26d2b19d4e9388072b8dae574efdf00d7f7a0f2f (diff) |
tdf#142638 crash leaving embedded object (GTK3)
regression from
commit 8d485ec0cd35ee1ae7684f2b6ca96c0f0c6f9dac
Date: Sat May 29 08:34:28 2021 +0200
IsDisposed->isDisposed in vcl/../window
Change-Id: I9bca182d7d7c4abf4c308bad44c0a3a0bb04a716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116690
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index bd51bc38c6a6..ae2c0e0d3e43 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1697,6 +1697,8 @@ void TabBar::Clear() bool TabBar::IsPageEnabled(sal_uInt16 nPageId) const { + if (isDisposed()) + return false; sal_uInt16 nPos = GetPagePos(nPageId); return nPos != PAGE_NOT_FOUND; |