summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2020-02-07 18:16:49 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-02-08 18:09:59 +0100
commit153c4c7e6ab066c6b1c06704e08e5be815cfc024 (patch)
tree304348361602f3725a34b77807a32dc0736ac37f /sc/source/ui/view
parent52292c374c3a6a5b4d9c6ced616b0ddd505a5298 (diff)
tdf#128873 speed up switching into page layout
Change-Id: I993fdafe226680ac718f4611cfb1f842bc99f385 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88231 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/printfun.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index dc1930baff27..799f5fa3ae0c 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -421,13 +421,13 @@ static void lcl_HidePrint( const ScTableInfo& rTabInfo, SCCOL nX1, SCCOL nX2 )
RowInfo* pThisRowInfo = &rTabInfo.mpRowInfo[nArrY];
for (SCCOL nX=nX1; nX<=nX2; nX++)
{
- const CellInfo& rCellInfo = pThisRowInfo->pCellInfo[nX+1];
+ CellInfo& rCellInfo = pThisRowInfo->pCellInfo[nX+1];
if (!rCellInfo.bEmptyCellText)
if (rCellInfo.pPatternAttr->
GetItem(ATTR_PROTECTION, rCellInfo.pConditionSet).GetHidePrint())
{
- pThisRowInfo->pCellInfo[nX+1].maCell.clear();
- pThisRowInfo->pCellInfo[nX+1].bEmptyCellText = true;
+ rCellInfo.maCell.clear();
+ rCellInfo.bEmptyCellText = true;
}
}
}