trackplacer: fix a small but fatal bug.

This commit is contained in:
Eric S. Raymond 2008-10-16 20:27:48 +00:00
parent f570d205e2
commit b1e396b502

View file

@ -189,7 +189,8 @@ class JourneyTracks:
raise IOException("Reading with tracks nonempty.", fp.name)
if fp.name.endswith(".png") or fp.name.endswith(".jpg"):
self.mapfile = self.properties['map'] = fp.name
self.add_track("JOURNEY")
self.selected_id = "JOURNEY"
self.add_track(self.selected_id)
self.modified = 0
return
if not fp.name.endswith(".cfg"):