Skip to content

Commit

Permalink
Fix issue with sizeunits being read as units
Browse files Browse the repository at this point in the history
  • Loading branch information
samuellapointe committed Dec 21, 2015
1 parent 1d94891 commit 9a5b026
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scribeui_pyramid/modules/maps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,9 @@ def open_map(self):
for line in mapfile_lines:
line = line.strip()
index = line.find('UNITS')
if index != -1:
if index != -1 and line.find('SIZEUNITS') == -1:
data['OLUnits'] = line[index+6:].replace(':', '').strip()
break

try:
scales = json.loads(string2json(data['scales']))
Expand Down

0 comments on commit 9a5b026

Please sign in to comment.