Skip to content

Commit 6b06242

Browse files
committed
Get unique list of ways first before writing out the number of ways
1 parent f7993c9 commit 6b06242

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/output-flex.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,10 +1545,11 @@ void output_flex_t::reprocess_marked()
15451545
lua_setfield(lua_state(), -2, "stage");
15461546
lua_pop(lua_state(), 1); // osm2pgsql
15471547

1548+
m_stage2_way_ids->sort_unique();
1549+
15481550
log_info(
15491551
"There are {} ways to reprocess..."_format(m_stage2_way_ids->size()));
15501552

1551-
m_stage2_way_ids->sort_unique();
15521553
for (osmid_t const id : *m_stage2_way_ids) {
15531554
m_buffer.clear();
15541555
if (!m_mid->way_get(id, &m_buffer)) {

0 commit comments

Comments
 (0)