fix GeometryBuffer.clear(), first index should never be -1
This commit is contained in:
parent
19ee048582
commit
af4df27d42
@ -1,6 +1,5 @@
|
|||||||
package org.oscim.core;
|
package org.oscim.core;
|
||||||
|
|
||||||
// TODO: Auto-generated Javadoc
|
|
||||||
// TODO
|
// TODO
|
||||||
// - getter methods!
|
// - getter methods!
|
||||||
// - check indexPos < Short.Max
|
// - check indexPos < Short.Max
|
||||||
@ -99,7 +98,7 @@ public class GeometryBuffer {
|
|||||||
* Reset buffer.
|
* Reset buffer.
|
||||||
*/
|
*/
|
||||||
public void clear() {
|
public void clear() {
|
||||||
index[0] = -1;
|
index[0] = 0;
|
||||||
indexPos = 0;
|
indexPos = 0;
|
||||||
pointPos = 0;
|
pointPos = 0;
|
||||||
type = GeometryType.NONE;
|
type = GeometryType.NONE;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user