| 96 | } |
| 97 | |
| 98 | bool Selection::lineWithin(LineRef l) const |
| 99 | { |
| 100 | if(!firstLine.isValid()) |
| 101 | return false; |
| 102 | LineRef l1 = firstLine; |
| 103 | LineRef l2 = lastLine; |
| 104 | |
| 105 | if(l1 > l2) |
| 106 | { |
| 107 | std::swap(l1, l2); |
| 108 | } |
| 109 | |
| 110 | return (l1 <= l && l <= l2); |
| 111 | } |
no test coverage detected