mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-17 08:55:05 -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);
|
||||
}
|
||||
|
||||
private VectorFloat nextVectorRel() throws ParserException {
|
||||
return new VectorFloat(x + nextValue(), y + nextValue());
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a polygon from the given path.
|
||||
*
|
||||
@ -149,7 +153,7 @@ public class PolygonParser {
|
||||
p.add(nextVector());
|
||||
break;
|
||||
case 'c':
|
||||
p.add(nextVectorInc(), nextVectorInc(), nextVectorInc());
|
||||
p.add(nextVectorRel(), nextVectorRel(), nextVectorInc());
|
||||
break;
|
||||
case 'C':
|
||||
p.add(nextVector(), nextVector(), nextVector());
|
||||
|
Loading…
x
Reference in New Issue
Block a user