diff options
-rw-r--r-- | sc/source/core/data/table5.cxx | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx index 143221ae8eb3..ffbda84c87b6 100644 --- a/sc/source/core/data/table5.cxx +++ b/sc/source/core/data/table5.cxx @@ -120,7 +120,6 @@ void ScTable::UpdatePageBreaks( const ScRange* pUserArea ) bool bSkipColBreaks = false; bool bSkipRowBreaks = false; - bool bSkipBreaks = false; if ( pStyleSet->GetItemState( ATTR_PAGE_SCALETOPAGES, false, &pItem ) == SFX_ITEM_SET ) { @@ -138,15 +137,6 @@ void ScTable::UpdatePageBreaks( const ScRange* pUserArea ) bSkipRowBreaks = true; } - if (!bSkipBreaks && pStyleSet->GetItemState(ATTR_PAGE_SCALETO, false, &pItem) == SFX_ITEM_SET) - { - const ScPageScaleToItem& rScaleToItem = static_cast<const ScPageScaleToItem&>( - pStyleSet->Get(ATTR_PAGE_SCALETO)); - if (rScaleToItem.GetWidth() > 0 || rScaleToItem.GetHeight() > 0) - // when fitting to a fixed width x height, ignore manual breaks. - bSkipBreaks = true; - } - //-------------------------------------------------------------------------- long nPageSizeX = aPageSizeTwips.Width(); |