ITextTableCell thisCompareRangeCell = thisCompareRange.getCell();
ITextTableCell textRangeToCompareCell = textRangeToCompare.getCell();
if(thisCompareRangeCell != null && textRangeToCompareCell == null) {
XTextContent textTable = thisCompareRangeCell.getTextTable().getXTextContent();
XSelectionSupplier selectionSupplier = (XSelectionSupplier)UnoRuntime.queryInterface(XSelectionSupplier.class, textDocument.getXTextDocument().getCurrentController());
selectionSupplier.select(textTable);
XTextViewCursorSupplier xTextViewCursorSupplier = (XTextViewCursorSupplier)UnoRuntime.queryInterface(XTextViewCursorSupplier.class, textDocument.getXTextDocument().getCurrentController());
xTextViewCursorSupplier.getViewCursor().goLeft((short)1,false);
thisCompareRange = textDocument.getViewCursorService().getViewCursor().getTextCursorFromEnd().getEnd();
}
else if(textRangeToCompareCell != null && thisCompareRangeCell == null) {