join nested if

This commit is contained in:
Hannes Janetzek 2013-04-23 01:07:21 +02:00
parent 0795470d84
commit 2bc71090b3

View File

@ -63,11 +63,9 @@ public class GeometryBuffer {
if (CHECK_STATE)
setOrCheckMode(2);
if (index[0] >= 0){
// start next
if (++indexPos >= index.length)
ensureIndexSize(indexPos, true);
}
// start next
if ((index[0] >= 0) && (++indexPos >= index.length))
ensureIndexSize(indexPos, true);
// initialize with zero points
index[indexPos] = 0;