sc/source/ui/app/transobj.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit b1b0723de0772071efee2b4073b47fedef1a245e Author: Xisco Fauli <[email protected]> AuthorDate: Fri Aug 25 12:42:02 2023 +0200 Commit: Christian Lohmaier <[email protected]> CommitDate: Wed Aug 30 12:30:11 2023 +0200 sc: fix crash in ScTransferObj::DragFinished See https://crashreport.libreoffice.org/stats/signature/ScModule::GetDragData() Change-Id: Ic5cdc3e1796fa20ac84150a04bed539bc9ca7321 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156094 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit 8b022db4cd397fd88f8078fc7f5ff85f21635155) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156216 Reviewed-by: Michael Stahl <[email protected]> Tested-by: Christian Lohmaier <[email protected]> Reviewed-by: Christian Lohmaier <[email protected]> diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index a81e4149956e..9f6729d46a43 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -566,7 +566,7 @@ void ScTransferObj::DragFinished( sal_Int8 nDropAction ) } ScModule* pScMod = SC_MOD(); - if ( pScMod->GetDragData().pCellTransfer == this ) + if ( pScMod && pScMod->GetDragData().pCellTransfer == this ) pScMod->ResetDragObject(); m_xDragSourceRanges = nullptr; // don't keep source after dropping
