Skip to content

Commit 45d1fdc

Browse files
committed
Fix #305 using suggetion on issue
1 parent bb2a7b7 commit 45d1fdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/osm_elements/Relation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ Relation::members_str() const {
7474
*/
7575
+ "=>\"type=>way\",";
7676
}
77-
way_list[way_list.size() -1] = ' ';
77+
size_t n = way_list.size();
78+
if (n > 0) way_list.resize(n - 1);
7879

7980
return way_list;
8081
}

0 commit comments

Comments
 (0)