| 1673 | } |
| 1674 | |
| 1675 | void DiffTextWindow::convertSelectionToD3LCoords() const |
| 1676 | { |
| 1677 | if(d->getDiff3LineVector() == nullptr || !updatesEnabled() || !isVisible() || d->m_selection.isEmpty()) |
| 1678 | { |
| 1679 | return; |
| 1680 | } |
| 1681 | |
| 1682 | // convert the d->m_selection to unwrapped coordinates: Later restore to new coords |
| 1683 | LineType firstD3LIdx; |
| 1684 | qsizetype firstD3LPos; |
| 1685 | qsizetype firstPosInText = d->m_selection.beginPos(); |
| 1686 | convertLineCoordsToD3LCoords(d->m_selection.beginLine(), firstPosInText, firstD3LIdx, firstD3LPos); |
| 1687 | |
| 1688 | LineType lastD3LIdx; |
| 1689 | qsizetype lastD3LPos; |
| 1690 | qsizetype lastPosInText = d->m_selection.endPos(); |
| 1691 | convertLineCoordsToD3LCoords(d->m_selection.endLine(), lastPosInText, lastD3LIdx, lastD3LPos); |
| 1692 | |
| 1693 | d->m_selection.start(firstD3LIdx, firstD3LPos); |
| 1694 | d->m_selection.end(lastD3LIdx, lastD3LPos); |
| 1695 | } |
| 1696 | |
| 1697 | bool DiffTextWindow::startRunnables() |
| 1698 | { |
no test coverage detected