OdtDocument.fixCursorPositions will preserve the current range selection

Previously, fixCursorPositions would always result in the cursor's range
being collapsed. This has now been extended to maintain the selection
whilst fixing the position of both the cursor and anchor nodes.