Fix crash when acceptance in pixels == 0
Merge pull request #424 from DrTon/acceptance_fix

Fix crash when acceptance in pixels == 0