fix loop condition in _allDistMargin
Merge pull request #17 from twpayne/fix-all-dist-margin

Fix loop condition in _allDistMargin