[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - sfx2/source
Caolán McNamara
caolanm at redhat.com
Tue May 17 07:18:03 UTC 2016
sfx2/source/sidebar/TabItem.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 6b8c3b6435bd7ab0cd922db2fe7abc2f206f8dab
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri May 13 12:31:53 2016 +0100
Resolves: tdf#96092 crash on activating manage changes sidebar
Change-Id: I39ab778114e2317ac471e92f9441ed4a83e7023b
(cherry picked from commit 296a67874a9e5ee1f93a38716e996207b1d2b59f)
Reviewed-on: https://gerrit.libreoffice.org/24957
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/sfx2/source/sidebar/TabItem.cxx b/sfx2/source/sidebar/TabItem.cxx
index 8042528..8c45b65 100644
--- a/sfx2/source/sidebar/TabItem.cxx
+++ b/sfx2/source/sidebar/TabItem.cxx
@@ -103,9 +103,12 @@ void TabItem::MouseButtonUp(const MouseEvent& rMouseEvent)
{
Check();
Click();
- GetParent()->Invalidate();
+ vcl::Window* pParent = GetParent();
+ if (pParent)
+ pParent->Invalidate();
}
}
+
if (mbIsLeftButtonDown)
{
mbIsLeftButtonDown = false;
More information about the Libreoffice-commits
mailing list