Commits (3)
......@@ -141,6 +141,9 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.40 (07/2017)
- Fix range check in arrays
1.5.39 (07/2017)
- Minor fix in testcase Makefile
......
......@@ -1656,7 +1656,7 @@ def primary_index(root, context):
'Index range [{id1} .. {id2}] '
'outside of range [{r1} .. {r2}]'
.format(id1=idx_bty.Min, id2=idx_bty.Max,
r1=int(r_min) - 1,
r1=max(0, int(r_min) - 1),
r2=int(r_max) - 1)))
elif float(idx_bty.Min) > float(r_min):
warnings.append(warning(root,
......
......@@ -139,7 +139,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.39'
__version__ = '1.5.40'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......