sc/source/ui/dbgui/PivotLayoutTreeListData.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit fbef08d9cb9c5bfc852dc23d5bafc9d057ee3bcd Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Tue Jan 19 12:02:41 2021 +0100 Commit: Szymon Kłos <szymon.k...@collabora.com> CommitDate: Thu Jan 21 07:50:16 2021 +0100 pivot table: avoid crash on drag n drop Change-Id: I8d081cf884c38b2e4f367143ad728c29b1466fbd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109634 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> diff --git a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx index 95d36776a5d7..0dad394bda80 100644 --- a/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx +++ b/sc/source/ui/dbgui/PivotLayoutTreeListData.cxx @@ -177,6 +177,9 @@ void ScPivotLayoutTreeListData::PushDataFieldNames(std::vector<ScDPName>& rDataF void ScPivotLayoutTreeListData::InsertEntryForSourceTarget(weld::TreeView& rSource, int nTarget) { + if (rSource.count_selected_rows() <=0) + return; + ScItemValue* pItemValue = reinterpret_cast<ScItemValue*>(rSource.get_selected_id().toInt64()); if (mpParent->IsDataElement(pItemValue->maFunctionData.mnCol)) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits