aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/svgpic
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2017-09-28 11:20:22 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2017-09-28 11:20:22 +0200
commited9342b2a15fcb98a5e1641b291b9d51f00538e8 (patch)
treefae6678eac643e3b220ac1cf5529a81f780fe475 /src/cmd/svgpic
parent3792be8ab8fe8253fa4758a646963eb7fb95b390 (diff)
parent3f8ac29339ad67f05d32064fcc810035d55a3985 (diff)
downloadplan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.tar.gz
plan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.tar.bz2
plan9port-ed9342b2a15fcb98a5e1641b291b9d51f00538e8.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/cmd/svgpic')
-rw-r--r--src/cmd/svgpic/plsvg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/svgpic/plsvg.c b/src/cmd/svgpic/plsvg.c
index 3f342e68..7f6db9d4 100644
--- a/src/cmd/svgpic/plsvg.c
+++ b/src/cmd/svgpic/plsvg.c
@@ -288,14 +288,12 @@ void circle(double x, double y, double r)
void spline(double x, double y, double n, ofloat *p, int attr, double ddval)
{
int i;
- double x1, y1, x2, y2;
+ double x1, y1;
printf("<path d=\"M %.3f %.3f", xconv(x), yconv(y));
x1 = 0;
y1 = 0;
for (i = 0; i < 2 * n; i += 2) {
- x2 = x1;
- y2 = y1;
x1 = x;
y1 = y;
x += p[i];