diff options
author | adam <adam@pkgsrc.org> | 2014-07-29 07:03:27 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2014-07-29 07:03:27 +0000 |
commit | 2cad846ae077e5db41e671f619d23720ba2146f0 (patch) | |
tree | 5e453e5312cd7d07b23d224173944032090e17f0 /graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp | |
parent | 787a30d2e583a8a40e7bd08bcfd5c8a62003f865 (diff) | |
download | pkgsrc-2cad846ae077e5db41e671f619d23720ba2146f0.tar.gz |
Changes 0.48.5:
Adobe Illustrator SVG files containing entities can be loaded again
Support for Poppler 0.26
Support for Boehm-GC 7.4.0 and later
Several crash bugs were fixed
64-bit compilation is now possible on Windows
Diffstat (limited to 'graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp')
-rw-r--r-- | graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp b/graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp deleted file mode 100644 index b3e9c6e5fc4..00000000000 --- a/graphics/inkscape/patches/patch-src_2geom_basic-intersection.cpp +++ /dev/null @@ -1,37 +0,0 @@ -$NetBSD: patch-src_2geom_basic-intersection.cpp,v 1.1 2012/11/16 00:54:04 joerg Exp $ - ---- src/2geom/basic-intersection.cpp.orig 2012-11-15 17:34:38.000000000 +0000 -+++ src/2geom/basic-intersection.cpp -@@ -64,24 +64,27 @@ void find_intersections(std::vector< std - void split(vector<Point> const &p, double t, - vector<Point> &left, vector<Point> &right) { - const unsigned sz = p.size(); -- Geom::Point Vtemp[sz][sz]; -+ Geom::Point *Vtemp = new Geom::Point[sz * sz];; - - /* Copy control points */ -- std::copy(p.begin(), p.end(), Vtemp[0]); -+ for (unsigned i = 0; i < sz; ++i) -+ Vtemp[0 * sz + i] = p[i]; - - /* Triangle computation */ - for (unsigned i = 1; i < sz; i++) { - for (unsigned j = 0; j < sz - i; j++) { -- Vtemp[i][j] = lerp(t, Vtemp[i-1][j], Vtemp[i-1][j+1]); -+ Vtemp[i * sz + j] = lerp(t, Vtemp[(i-1) * sz + j], Vtemp[(i-1) * sz + j+1]); - } - } - - left.resize(sz); - right.resize(sz); - for (unsigned j = 0; j < sz; j++) -- left[j] = Vtemp[j][0]; -+ left[j] = Vtemp[j * sz]; - for (unsigned j = 0; j < sz; j++) -- right[j] = Vtemp[sz-1-j][j]; -+ right[j] = Vtemp[(sz-1-j) * sz + j]; -+ -+ delete[] Vtemp; - } - - |