Fixed version not being added to way/node

This commit is contained in:
PaulStets 2017-06-24 15:27:20 +03:00
parent e2cc3ddebb
commit dcc3808d78

View file

@ -262,7 +262,7 @@ public class OsmBaseStorage {
if (parser.getAttributeName(parser.getAttributeCount() - 1).equals(ATTR_VERSION)) { if (parser.getAttributeName(parser.getAttributeCount() - 1).equals(ATTR_VERSION)) {
return Integer.valueOf(parser.getAttributeValue(parser.getAttributeCount() - 1)); return Integer.valueOf(parser.getAttributeValue(parser.getAttributeCount() - 1));
} }
return -1; return 0;
} }
public void endElement(XmlPullParser parser, String name) { public void endElement(XmlPullParser parser, String name) {