summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes/VCartesianAxis.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-06-27 15:10:26 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-28 08:35:03 +0000
commit0f17e343306fd457c542067c09242ddd04ca39e9 (patch)
tree98a114e5d9385a2f44c4e662d6b67a91dffc04fb /chart2/source/view/axes/VCartesianAxis.cxx
parentdb11f792018f6905733323a4979c6a5e697807ca (diff)
loplugin:singlevalfields in chart2
Change-Id: I8b8bf093736a191c90d765dce82b00e15bb398d6 Reviewed-on: https://gerrit.libreoffice.org/26708 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source/view/axes/VCartesianAxis.cxx')
-rw-r--r--chart2/source/view/axes/VCartesianAxis.cxx22
1 files changed, 0 insertions, 22 deletions
diff --git a/chart2/source/view/axes/VCartesianAxis.cxx b/chart2/source/view/axes/VCartesianAxis.cxx
index 97912a5cb349..0e0920b4d2e7 100644
--- a/chart2/source/view/axes/VCartesianAxis.cxx
+++ b/chart2/source/view/axes/VCartesianAxis.cxx
@@ -776,8 +776,6 @@ bool VCartesianAxis::createTextShapes(
// Increment the visible tick intervals (if that's
// allowed) and start over.
- if( rAxisLabelProperties.bRhythmIsFix )
- continue;
rAxisLabelProperties.nRhythm++;
removeShapesAtWrongRhythm( rTickIter, rAxisLabelProperties.nRhythm, nTick, xTarget );
return false;
@@ -872,15 +870,6 @@ bool VCartesianAxis::createTextShapes(
return false;
}
- if( rAxisLabelProperties.bRhythmIsFix )
- {
- // Tick interval is fixed. We have no choice but to
- // remove this label.
- xTarget->remove(pTickInfo->xTextShape);
- pTickInfo->xTextShape = nullptr;
- continue;
- }
-
// Try incrementing the tick interval and start over.
rAxisLabelProperties.nRhythm++;
removeShapesAtWrongRhythm( rTickIter, rAxisLabelProperties.nRhythm, nTick, xTarget );
@@ -956,8 +945,6 @@ bool VCartesianAxis::createTextShapesSimple(
// This tick overlaps with its neighbor. Increment the visible
// tick intervals (if that's allowed) and start over.
- if( rAxisLabelProperties.bRhythmIsFix )
- continue;
rAxisLabelProperties.nRhythm++;
removeShapesAtWrongRhythm( rTickIter, rAxisLabelProperties.nRhythm, nTick, xTarget );
return false;
@@ -1014,15 +1001,6 @@ bool VCartesianAxis::createTextShapesSimple(
return false;
}
- if( rAxisLabelProperties.bRhythmIsFix )
- {
- // Tick interval is fixed. We have no choice but to
- // remove this label.
- xTarget->remove(pTickInfo->xTextShape);
- pTickInfo->xTextShape = nullptr;
- continue;
- }
-
// Try incrementing the tick interval and start over.
rAxisLabelProperties.nRhythm++;
removeShapesAtWrongRhythm( rTickIter, rAxisLabelProperties.nRhythm, nTick, xTarget );