Fixed issues with auto-closing paths.

This commit is contained in:
Michael Bayne
2013-03-06 10:49:19 -08:00
parent 73fc54dff0
commit 25b09788e3
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -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;
+4 -1
View File
@@ -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;