summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 17:22:31 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 17:51:37 +0200
commit6483e1c0cd61c36bd326621ba653413ae25503b3 (patch)
tree2a3567787354f7ccd9fc62461239d8834e5164f5
parent152e24885d625c336e4530c2a5aede2b712fe213 (diff)
clang-analyzer-deadcode.DeadStores
Change-Id: I103580d25ebc3287fac4c8c846731192e4320dc9
-rw-r--r--svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx
index 542198a439d2..d9b7a4365b67 100644
--- a/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx
+++ b/svx/source/sdr/primitive2d/sdrmeasureprimitive2d.cxx
@@ -87,8 +87,6 @@ namespace drawinglayer
Primitive2DSequence aRetval;
css::uno::Reference<SdrBlockTextPrimitive2D> xBlockText;
basegfx::B2DRange aTextRange;
- double fTextX((getStart().getX() + getEnd().getX()) * 0.5);
- double fTextY((getStart().getX() + getEnd().getX()) * 0.5);
const basegfx::B2DVector aLine(getEnd() - getStart());
const double fDistance(aLine.getLength());
const double fAngle(atan2(aLine.getY(), aLine.getX()));
@@ -140,6 +138,8 @@ namespace drawinglayer
}
// prepare line attribute and result
+ double fTextX;
+ double fTextY;
{
const attribute::SdrLineAttribute rLineAttribute(getSdrLSTAttribute().getLine());
bool bArrowsOutside(false);