sc/source/ui/view/viewdata.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit f858cd5e5e9b3f66818868b097bbab107bb57930
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Tue Nov 12 23:01:46 2019 +0100
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Wed Nov 13 06:14:52 2019 +0100

    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.gran...@collabora.co.uk>

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 ),
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to