diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-01-29 18:47:41 +0000 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-01-29 18:50:55 +0000 |
commit | 76599f3ca36810379a2dda7826aa3cd0f4441cfb (patch) | |
tree | 1ccd71800e1c02283e5e71d19ad72a46d3da3059 /basegfx | |
parent | 79a532c1be0917ec085f29233f79f76bd2c9d3ee (diff) |
We're retrieving the arrow width, so let's do so directly.
B2DRange::getRange() simply returns a vector containing getWidth()
and getHeight(), so we might as well retrieve the value we need
directly.
Change-Id: I4cb4039325d3145a70f287a6d38eaadd36bd6b89
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dlinegeometry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/polygon/b2dlinegeometry.cxx b/basegfx/source/polygon/b2dlinegeometry.cxx index 417944dde525..0532ee175e4b 100644 --- a/basegfx/source/polygon/b2dlinegeometry.cxx +++ b/basegfx/source/polygon/b2dlinegeometry.cxx @@ -81,7 +81,7 @@ namespace basegfx -aArrowSize.getCenter().getX(), -aArrowSize.getMinimum().getY())); // scale to target size - const double fArrowScale(fWidth / (aArrowSize.getRange().getX())); + const double fArrowScale(fWidth / (aArrowSize.getWidth())); aArrowTransform.scale(fArrowScale, fArrowScale); // get arrow size in Y |