| 2696 | } |
| 2697 | |
| 2698 | void |
| 2699 | Project::unionFrameRangeWith(int first, |
| 2700 | int last) |
| 2701 | { |
| 2702 | int curFirst, curLast; |
| 2703 | bool mustSet = !_imp->frameRange->hasModifications() && first != last; |
| 2704 | |
| 2705 | curFirst = _imp->frameRange->getValue(0); |
| 2706 | curLast = _imp->frameRange->getValue(1); |
| 2707 | curFirst = !mustSet ? std::min(first, curFirst) : first; |
| 2708 | curLast = !mustSet ? std::max(last, curLast) : last; |
| 2709 | beginChanges(); |
| 2710 | _imp->frameRange->setValue(curFirst, ViewSpec::all(), 0); |
| 2711 | _imp->frameRange->setValue(curLast, ViewSpec::all(), 1); |
| 2712 | endChanges(); |
| 2713 | } |
| 2714 | |
| 2715 | void |
| 2716 | Project::recomputeFrameRangeFromReaders() |
no test coverage detected