[Libreoffice-commits] core.git: svtools/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 4 13:34:11 UTC 2021
svtools/source/control/tabbar.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit e4514e65399a1e0398ef94efed6fa1774cff7ea6
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Fri Jun 4 12:02:31 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Jun 4 15:33:36 2021 +0200
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list