summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewdata.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r--sc/source/ui/view/viewdata.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index feb8fde51fb6..98aff34a7526 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -750,8 +750,6 @@ ScSplitPos ScViewDataTable::SanitizeWhichActive() const
return eWhichActive;
}
-const ScSheetLimits gaNoShellSheetLimits(MAXCOL, MAXROW);
-
ScViewData::ScViewData(ScDocShell& rDocSh, ScTabViewShell* pViewSh)
: ScViewData(nullptr, &rDocSh, pViewSh)
{
@@ -779,7 +777,7 @@ static ScViewOptions DefaultOptions()
ScViewData::ScViewData(ScDocument* pDoc, ScDocShell* pDocSh, ScTabViewShell* pViewSh) :
nPPTX(0.0),
nPPTY(0.0),
- maMarkData (pDocSh ? pDocSh->GetDocument().GetSheetLimits() : gaNoShellSheetLimits),
+ maMarkData (pDocSh ? pDocSh->GetDocument().GetSheetLimits() : pDoc->GetSheetLimits()),
pDocShell ( pDocSh ),
mrDoc (pDoc ? *pDoc : pDocSh->GetDocument()),
pView ( pViewSh ),