fix: GeometryBuffer.startLine()
- *always* set end marker
This commit is contained in:
parent
2583ad2ce6
commit
d8e23fbafe
@ -177,15 +177,15 @@ public class GeometryBuffer {
|
|||||||
setOrCheckMode(GeometryType.LINE);
|
setOrCheckMode(GeometryType.LINE);
|
||||||
|
|
||||||
// ignore
|
// ignore
|
||||||
if (index[indexPos] == 0)
|
if (index[indexPos] > 0) {
|
||||||
return this;
|
|
||||||
|
|
||||||
// start next
|
// start next
|
||||||
if ((index[0] >= 0) && (++indexPos >= index.length))
|
if ((index[0] >= 0) && (++indexPos >= index.length))
|
||||||
ensureIndexSize(indexPos, true);
|
ensureIndexSize(indexPos, true);
|
||||||
|
|
||||||
// initialize with zero points
|
// initialize with zero points
|
||||||
index[indexPos] = 0;
|
index[indexPos] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// set new end marker
|
// set new end marker
|
||||||
if (index.length > indexPos + 1)
|
if (index.length > indexPos + 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user