mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 09:24:42 -04:00
fixed a bug in the PolygonParser
This commit is contained in:
parent
bac805fbea
commit
3c92eb2d7b
@ -102,6 +102,10 @@ public class PolygonParser {
|
|||||||
return new VectorFloat(x, y);
|
return new VectorFloat(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private VectorFloat nextVectorRel() throws ParserException {
|
||||||
|
return new VectorFloat(x + nextValue(), y + nextValue());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a polygon from the given path.
|
* Creates a polygon from the given path.
|
||||||
*
|
*
|
||||||
@ -149,7 +153,7 @@ public class PolygonParser {
|
|||||||
p.add(nextVector());
|
p.add(nextVector());
|
||||||
break;
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
p.add(nextVectorInc(), nextVectorInc(), nextVectorInc());
|
p.add(nextVectorRel(), nextVectorRel(), nextVectorInc());
|
||||||
break;
|
break;
|
||||||
case 'C':
|
case 'C':
|
||||||
p.add(nextVector(), nextVector(), nextVector());
|
p.add(nextVector(), nextVector(), nextVector());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user