Fix bug in computation of last line offset
Fix bug in computation of last line offset

rukistar/kanzi,sharkkid/kanzi,rzel/kanzi,rzel/kanzi,rukistar/kanzi,rukistar/kanzi,Sputuks3/kanzi,sharkkid/kanzi,sharkkid/kanzi,Sputuks3/kanzi,rzel/kanzi,Sputuks3/kanzi