summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-02-06 07:38:58 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-02-06 07:38:58 +0100
commit444ae4d04adf6c9cdcd1222ef3b8b2e5bf45db0a (patch)
tree187c2490fcd3e1a592729e47e4596deae83fb42e
parent3a7a9703c3d623eb1cf767eb45895035b3e17608 (diff)
Fix 'bSkipBreaks' is assigned a value that is never used
See http://nabble.documentfoundation.org/Cppcheck-bSkipBreaks-is-assigned-a-value-that-is-never-used-sc-td4034724.html Change-Id: I846d433c49ad6951539ad283514ce84263236bbb
-rw-r--r--sc/source/core/data/table5.cxx10
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();