From 153c4c7e6ab066c6b1c06704e08e5be815cfc024 Mon Sep 17 00:00:00 2001 From: Serge Krot Date: Fri, 7 Feb 2020 18:16:49 +0100 Subject: 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 --- sc/source/ui/view/printfun.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sc/source/ui/view') 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; } } } -- cgit