Merge pull request #1073 from MapQuest/shapeindex-null-bug

Pos counter in shapeindex not incremented for null geometry
This commit is contained in:
Artem Pavlenko 2012-02-10 08:09:16 -08:00
commit eb210581a5

View file

@ -165,6 +165,9 @@ int main (int argc,char** argv)
box2d<double> item_ext;
if (shape_type==shape_io::shape_null)
{
// still need to increment pos, or the pos counter
// won't indicate EOF until too late.
pos+=4+content_length;
continue;
}
else if (shape_type==shape_io::shape_point)