diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-02-23 13:22:15 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-02-23 16:22:13 +0100 |
commit | 90bf00cfb7b05f02c541965c5e713a6dadf9e6e0 (patch) | |
tree | 990d1e9c8aa7824b4e40be15550361f49ab9d974 /sc/source/ui/view | |
parent | f4a62e5479b47d90d6de518f38a97ac0b5322c54 (diff) |
remove MAXCOL/MAXROW from ScViewData
Change-Id: I12461bac8dd127075ee9071e1015561f7a029624
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130435
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 4 |
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 ), |