sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 068edb65b1dce375223d8642a01b07db3948ac03
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Jan 26 09:12:24 2017 +0000

    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

diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx 
b/sc/source/ui/dbgui/PivotLayoutTreeListLabel.cxx
index 3795601..6f2425c 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();
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to