diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2019-11-12 23:01:46 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-13 06:14:52 +0100 |
commit | f858cd5e5e9b3f66818868b097bbab107bb57930 (patch) | |
tree | 1726e6104f2f784e87b6d91518934938a3be0794 /sc/source/ui/view/viewdata.cxx | |
parent | 4e4fb7e84d42ca35f47ceaf8aa3f45518888be81 (diff) |
Related tdf#128753: fix regression
from https://cgit.freedesktop.org/libreoffice/core/commit/?id=a8a064d11c05feed83f05b0ce8209f7054afd804
See bt: https://bugs.documentfoundation.org/attachment.cgi?id=155761
Change-Id: If527f539e47e3a2ff9f3745665080adc955ea75b
Reviewed-on: https://gerrit.libreoffice.org/82559
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index 5cdb89ec4890..0ea25ebce6de 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -732,7 +732,10 @@ ScSplitPos ScViewDataTable::SanitizeWhichActive() const ScViewData::ScViewData( ScDocShell* pDocSh, ScTabViewShell* pViewSh ) : nPPTX(0.0), nPPTY(0.0), - mpMarkData(new ScMarkData(pDocSh->GetDocument().MaxRow(), pDocSh->GetDocument().MaxCol()) ), + mpMarkData(pDocSh? + new ScMarkData(pDocSh->GetDocument().MaxRow(), pDocSh->GetDocument().MaxCol()) : + new ScMarkData(MAXROW, MAXCOL) + ), pDocShell ( pDocSh ), pDoc ( nullptr ), pView ( pViewSh ), |