summaryrefslogtreecommitdiffstats
path: root/src/2geom/poly.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-08-30 18:32:36 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-08-30 18:32:36 +0000
commit13e73fa386cd7843d7079ec7c162ef43d15097c4 (patch)
treeab4c7a4f76528e9139a85aa1c1267ecf2c6df8fe /src/2geom/poly.cpp
parentupdated Slovak (sk) translation in trunk (diff)
downloadinkscape-13e73fa386cd7843d7079ec7c162ef43d15097c4.tar.gz
inkscape-13e73fa386cd7843d7079ec7c162ef43d15097c4.zip
Update to 2Geom rev. 1113
(bzr r3622)
Diffstat (limited to 'src/2geom/poly.cpp')
-rw-r--r--src/2geom/poly.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/2geom/poly.cpp b/src/2geom/poly.cpp
index 5c3a30002..17f286494 100644
--- a/src/2geom/poly.cpp
+++ b/src/2geom/poly.cpp
@@ -112,8 +112,8 @@ Poly derivative(Poly const & p) {
Poly compose(Poly const & a, Poly const & b) {
Poly result;
- for(unsigned i = a.size()-1; i >=0; i--) {
- result = Poly(a[i]) + result * b;
+ for(unsigned i = a.size(); i > 0; i--) {
+ result = Poly(a[i-1]) + result * b;
}
return result;