diff --git a/DataStructures/PBFParser.h b/DataStructures/PBFParser.h index fce20e860..55ea019d7 100644 --- a/DataStructures/PBFParser.h +++ b/DataStructures/PBFParser.h @@ -223,7 +223,7 @@ private: keyVals.Add(key, value); denseTagIndex += 2; } - if("bollard" == keyVals.Find("barrier")) + if("" != keyVals.Find("barrier")) n.bollard = true; if(!(*addressCallback)(n, keyVals)) diff --git a/DataStructures/XMLParser.h b/DataStructures/XMLParser.h index 9bfb3ae48..cefd004da 100644 --- a/DataStructures/XMLParser.h +++ b/DataStructures/XMLParser.h @@ -257,7 +257,7 @@ private: } } if ( xmlStrEqual( k, ( const xmlChar* ) "barrier" ) == 1 ) { - if ( xmlStrEqual( value, ( const xmlChar* ) "bollard" ) == 1 ){ + if ( xmlStrEqual( value, ( const xmlChar* ) "" ) != 1 ){ node.bollard = true; } }