summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-26 09:12:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-26 09:19:22 +0000
commit068edb65b1dce375223d8642a01b07db3948ac03 (patch)
tree47db8ec8ba4991bc0fbaee325fcbb3d455c20d1c
parentaee1d799bebe6a492fbc54fec96270e441ccbc64 (diff)
Resolves: tdf#104153 crash on drag and drop pivot table field
now though sometimes it doesn't get removed at all, so a band aid for the moment Change-Id: I6ccbbe51fe9250af0f85c30a9d253269a18df457
-rw-r--r--sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
index 3795601cde5a..6f2425c926dd 100644
--- a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
+++ b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
@@ -59,7 +59,7 @@ void ScPivotLayoutTreeListLabel::FillLabelFields(ScDPLabelDataVector& rLabelVect
void ScPivotLayoutTreeListLabel::InsertEntryForSourceTarget(SvTreeListEntry* /*pSource*/, SvTreeListEntry* /*pTarget*/)
{
- if(mpParent->mpPreviouslyFocusedListBox.get() != this)
+ if (mpParent->mpPreviouslyFocusedListBox && mpParent->mpPreviouslyFocusedListBox.get() != this)
mpParent->mpPreviouslyFocusedListBox->RemoveSelection();
}