Skip to content

Commit ad544de

Browse files
committed
use iterator.handle() to fetch area ids
see #364 (comment)
1 parent 1790d14 commit ad544de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/overpass_api/statements/area_query.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
298298
it(area_locations_db.flat_begin());
299299
!(it == area_locations_db.flat_end()); ++it)
300300
{
301-
if (area->get_submitted_id() == it.object().id.val())
301+
if (area->get_submitted_id() == it.handle().object().id.val())
302302
counter += it.object().used_indices.size();
303303
}
304304
}
@@ -314,8 +314,8 @@ bool Area_Constraint::delivers_data(Resource_Manager& rman)
314314
for (vector< Area_Skeleton >::const_iterator it2 = it->second.begin(); it2 != it->second.end(); ++it2)
315315
counter += it2->used_indices.size();
316316
}
317-
318317
}
318+
319319
return (counter <= 12);
320320
}
321321

0 commit comments

Comments
 (0)