summaryrefslogtreecommitdiff
path: root/basegfx/source/tools
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-08-02 16:22:21 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-08-02 16:22:21 +0000
commit6d7c9e4d593288378dec97111a69e05719d2535a (patch)
tree4bb44576e18f03db6d24b591c03137da14162afe /basegfx/source/tools
parent89811f84bbbe3743c49a26b81b5092bf0974a509 (diff)
INTEGRATION: CWS aw052 (1.8.6); FILE MERGED
2007/07/27 17:29:45 aw 1.8.6.1: #i79917# Two errors in polygonFromBezier2DSequencepolygonFromBezier2DSequence; use first segment for start point (not last) and one x/y typo for 2nd control point
Diffstat (limited to 'basegfx/source/tools')
-rwxr-xr-xbasegfx/source/tools/canvastools.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index 3235897bed9a..25920dfcbaa1 100755
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: canvastools.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2007-07-18 11:07:38 $
+ * last change: $Author: hr $ $Date: 2007-08-02 17:22:21 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -286,7 +286,7 @@ namespace basegfx
{
// prepare start with providing a start point. Use the first point from
// the sequence for this
- const geometry::RealBezierSegment2D& rFirstSegment(curves[nSize - 1]);
+ const geometry::RealBezierSegment2D& rFirstSegment(curves[0]); // #i79917# first segment, not last
aRetval.append(basegfx::B2DPoint(rFirstSegment.Px, rFirstSegment.Py));
for(sal_Int32 a(0); a < nSize; a++)
@@ -297,7 +297,7 @@ namespace basegfx
// append curved edge with the control points and the next point
aRetval.appendBezierSegment(
basegfx::B2DPoint(rCurrSegment.C1x, rCurrSegment.C1y),
- basegfx::B2DPoint(rCurrSegment.C2x, rCurrSegment.C2x),
+ basegfx::B2DPoint(rCurrSegment.C2x, rCurrSegment.C2y), // #i79917# Argh! An x for an y!!
basegfx::B2DPoint(rNextSegment.Px, rNextSegment.Py));
}