Permalink
Browse files

Correct offsets of B record extensions.

  • Loading branch information...
1 parent f26c286 commit 9d30b180c17f3be869067a582b8471dc721ee287 @twpayne twpayne committed Jul 11, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 igc2kmz/igc.py
View
4 igc2kmz/igc.py
@@ -200,8 +200,8 @@ def parse(cls, line, igc):
m = I_RECORD_RE.match(line, 3 + 7 * i, 10 + 7 * i)
if not m:
raise SyntaxError, line
- igc.i[m.group(3).lower()] = slice(int(m.group(1)),
- int(m.group(2)) + 1)
+ igc.i[m.group(3).lower()] = slice(int(m.group(1)) - 1,
+ int(m.group(2)))
return result

0 comments on commit 9d30b18

Please sign in to comment.