Fixed issues with auto-closing paths.
This commit is contained in:
@@ -70,8 +70,11 @@ public class Area implements IShape, Cloneable
|
||||
}
|
||||
|
||||
if ((rulesIndex != 0) && (_rules[rulesIndex - 1] != PathIterator.SEG_CLOSE)) {
|
||||
_rules = adjustSize(_rules, rulesIndex + 1);
|
||||
_rules[rulesIndex] = PathIterator.SEG_CLOSE;
|
||||
_offsets[rulesIndex] = _coordsSize;
|
||||
_offsets = adjustSize(_offsets, rulesIndex + 1);
|
||||
_offsets[rulesIndex] = coordsIndex;
|
||||
++rulesIndex;
|
||||
}
|
||||
|
||||
_rulesSize = rulesIndex;
|
||||
|
||||
@@ -70,8 +70,11 @@ public class Area implements IShape, Cloneable
|
||||
}
|
||||
|
||||
if ((rulesIndex != 0) && (_rules[rulesIndex - 1] != PathIterator.SEG_CLOSE)) {
|
||||
_rules = adjustSize(_rules, rulesIndex + 1);
|
||||
_rules[rulesIndex] = PathIterator.SEG_CLOSE;
|
||||
_offsets[rulesIndex] = _coordsSize;
|
||||
_offsets = adjustSize(_offsets, rulesIndex + 1);
|
||||
_offsets[rulesIndex] = coordsIndex;
|
||||
++rulesIndex;
|
||||
}
|
||||
|
||||
_rulesSize = rulesIndex;
|
||||
|
||||
Reference in New Issue
Block a user