fixes #737 - avoid adding fields which end row is smaller then start row
(weird but true)
Merge branch 'master' of https://github.com/openlegacy/openlegacy