Kaydet (Commit) 704cf81e authored tarafından Julien Nabet's avatar Julien Nabet

tdf#90292: Crash in pivot table when dragging field into Rows fields

Regression from 6bf3b6d4

Change-Id: I422958e5979abeee1b07a4d0e81328d72d2c61c9
üst 30b214b4
...@@ -1246,6 +1246,7 @@ sal_Int8 SvTreeListBox::ExecuteDrop( const ExecuteDropEvent& rEvt, SvTreeListBox ...@@ -1246,6 +1246,7 @@ sal_Int8 SvTreeListBox::ExecuteDrop( const ExecuteDropEvent& rEvt, SvTreeListBox
pDDTarget = this; pDDTarget = this;
SvLBoxDDInfo aDDInfo; SvLBoxDDInfo aDDInfo;
memset( &aDDInfo, 0, sizeof(SvLBoxDDInfo) );
TransferableDataHelper aData( rEvt.maDropEvent.Transferable ); TransferableDataHelper aData( rEvt.maDropEvent.Transferable );
if( aData.HasFormat( SotClipboardFormatId::TREELISTBOX )) if( aData.HasFormat( SotClipboardFormatId::TREELISTBOX ))
...@@ -1264,7 +1265,6 @@ sal_Int8 SvTreeListBox::ExecuteDrop( const ExecuteDropEvent& rEvt, SvTreeListBox ...@@ -1264,7 +1265,6 @@ sal_Int8 SvTreeListBox::ExecuteDrop( const ExecuteDropEvent& rEvt, SvTreeListBox
SvTreeListEntry* pTarget = pTargetEntry; // may be 0! SvTreeListEntry* pTarget = pTargetEntry; // may be 0!
memset( &aDDInfo, 0, sizeof(SvLBoxDDInfo) );
if( DND_ACTION_COPY == rEvt.mnAction ) if( DND_ACTION_COPY == rEvt.mnAction )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment