Fixes ticket 30 and gives ref tags precedence over name tags

This commit is contained in:
Dennis Luxen 2011-05-19 16:44:34 +00:00
parent fadaf7ec5c
commit 8f637b95ef

View File

@ -101,10 +101,10 @@ public:
std::string access( w.keyVals.Find("access") );
std::string motorcar( w.keyVals.Find("motorcar") );
if ( name != "" ) {
w.name = name;
} else if ( ref != "" ) {
if ( ref != "" ) {
w.name = ref;
} else if ( name != "" ) {
w.name = name;
}
if ( oneway != "" ) {