Better check of overlapping of table cells when selecting text

Add check for overlapping of upper right cell with lower left cell
of assumed table (related to #3188).
1 file changed