fixed dotshift for lines < 0
Merge pull request #205 from aerhard/master

fixed dotshift for lines < 0