diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-01-14 10:20:09 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-01-16 12:35:10 +0100 |
commit | 965d2060880096f4ad6381e16ec11d58fbae2d31 (patch) | |
tree | 2cc85b60c360c0bfc59bfb82dc16e1c823adf1d0 | |
parent | 545d417d714bee156b45f8117486ccf5433a7dd9 (diff) |
tdf#114992: fix crash in deleting sheet
See bt:
https://bugs.documentfoundation.org/attachment.cgi?id=139087
Change-Id: Iee72385a8e5400436da72fe5e18b8cdfccad193d
Reviewed-on: https://gerrit.libreoffice.org/47850
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit 1d71f886d6760e5b3eeb4a0f9aaaead0816a45aa)
Reviewed-on: https://gerrit.libreoffice.org/47860
Reviewed-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index 03b35199c6b2..169be29ec220 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -611,7 +611,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) { const ScDPObject& rDPObj = (*pDPs)[i]; const ScSheetSourceDesc* pSheetSourceDesc = rDPObj.GetSheetDesc(); - if (pSheetSourceDesc->GetSourceRange().aStart.Tab() == nSelTab) + if (pSheetSourceDesc && pSheetSourceDesc->GetSourceRange().aStart.Tab() == nSelTab) bTabWithPivotTable = true; } } |