Fix ticket #9224: text overflows through adjacent insets

The logic of Row::shortenIfNeeded is completely changed to look at the row from the start and not the end. This leads to clearer code.
Merge remote-tracking branch 'github/build-bot-master' into bleeding-edge-master
2014.10.16-13.00