diff options
Diffstat (limited to 'sc/source/ui/view/printfun.cxx')
-rw-r--r-- | sc/source/ui/view/printfun.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx index 3b6d8e033be5..aa83de67fbed 100644 --- a/sc/source/ui/view/printfun.cxx +++ b/sc/source/ui/view/printfun.cxx @@ -392,8 +392,8 @@ static void lcl_HidePrint( const ScTableInfo& rTabInfo, SCCOL nX1, SCCOL nX2 ) { const CellInfo& rCellInfo = pThisRowInfo->pCellInfo[nX+1]; if (!rCellInfo.bEmptyCellText) - if (static_cast<const ScProtectionAttr&>(rCellInfo.pPatternAttr-> - GetItem(ATTR_PROTECTION, rCellInfo.pConditionSet)).GetHidePrint()) + if (rCellInfo.pPatternAttr-> + GetItem(ATTR_PROTECTION, rCellInfo.pConditionSet).GetHidePrint()) { pThisRowInfo->pCellInfo[nX+1].maCell.clear(); pThisRowInfo->pCellInfo[nX+1].bEmptyCellText = true; |