Skip to content

Commit

Permalink
use iterator.handle() to fetch area ids
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrasd committed Mar 2, 2017
1 parent 1790d14 commit 4d9992d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/overpass_api/statements/area_query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
it(area_locations_db.flat_begin());
!(it == area_locations_db.flat_end()); ++it)
{
if (area->get_submitted_id() == it.object().id.val())
if (area->get_submitted_id() == it.handle().id().val())
counter += it.object().used_indices.size();
}
}
Expand All @@ -314,8 +314,8 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
for (vector< Area_Skeleton >::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2)
counter += it2->used_indices.size();
}

}

return (counter <= 12);
}

Expand Down

0 comments on commit 4d9992d

Please sign in to comment.