summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-05-13 12:31:53 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-05-17 07:17:43 +0000
commit6b8c3b6435bd7ab0cd922db2fe7abc2f206f8dab (patch)
tree47564626ce637735e6f4de8801edecbe53cba409
parent3d0e80229ba99d3ad2b57a9c213bda8b0d861524 (diff)
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@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sfx2/source/sidebar/TabItem.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/TabItem.cxx b/sfx2/source/sidebar/TabItem.cxx
index 8042528df52e..8c45b6567d71 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;