[Libreoffice-commits] core.git: basegfx/source
Andrzej Hunt
andrzej.hunt at collabora.com
Wed Jan 29 10:52:17 PST 2014
basegfx/source/polygon/b2dlinegeometry.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 76599f3ca36810379a2dda7826aa3cd0f4441cfb
Author: Andrzej Hunt <andrzej.hunt at collabora.com>
Date: Wed Jan 29 18:47:41 2014 +0000
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
diff --git a/basegfx/source/polygon/b2dlinegeometry.cxx b/basegfx/source/polygon/b2dlinegeometry.cxx
index 417944d..0532ee1 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
More information about the Libreoffice-commits
mailing list