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
This commit is contained in:
Caolán McNamara
2017-01-26 09:12:24 +00:00
parent aee1d799be
commit 068edb65b1

View File

@@ -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();
}