geography: bad copy/paste. Points are at the same level.

This commit is contained in:
SNoiraud 2015-03-19 19:45:20 +01:00 committed by Ross Gammon
parent a40f3e70cf
commit 5af8c0d992

View File

@ -221,11 +221,9 @@ class Kml(GObject.GObject):
for subAttribute in attributes:
if subAttribute.tag == self.tag + 'name':
self.name = subAttribute.text
for subsubAttribute in subAttribute:
if subsubAttribute.tag == self.tag + 'Point':
self.get_point(subsubAttribute)
self.markers.append((self.name,
self.points))
if subsubAttribute.tag == self.tag + 'Point':
self.get_point(subsubAttribute)
self.markers.append((self.name, self.points))
return self.markers
GObject.type_register(Kml)