Merge "Do not compute outside given range in TextLine" into qt-dev