fix new-name on empty strings

This commit is contained in:
Moritz Kobitzsch
2016-05-04 10:32:12 +02:00
parent c7303be33b
commit 1e6888c0d3
3 changed files with 61 additions and 7 deletions
+4
View File
@@ -325,6 +325,10 @@ inline bool requiresNameAnnounced(const std::string &from,
const std::string &to,
const SuffixTable &suffix_table)
{
//first is empty and the second is not
if(from.empty() && !to.empty())
return true;
// FIXME, handle in profile to begin with?
// this uses the encoding of references in the profile, which is very BAD
// Input for this function should be a struct separating streetname, suffix (e.g. road,