From 8f637b95ef36a6765780e970c9edf8401f2ef492 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 19 May 2011 16:44:34 +0000 Subject: [PATCH] Fixes ticket 30 and gives ref tags precedence over name tags --- DataStructures/ExtractorCallBacks.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DataStructures/ExtractorCallBacks.h b/DataStructures/ExtractorCallBacks.h index fb3c3285b..b72ab4a1a 100644 --- a/DataStructures/ExtractorCallBacks.h +++ b/DataStructures/ExtractorCallBacks.h @@ -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 != "" ) {