Prevent small threshold lines from being rounded incorrectly (fixed #127)