| 894 | } |
| 895 | |
| 896 | SelectionInfo CLogView::GetSelectedRange() const |
| 897 | { |
| 898 | int first = GetNextItem(-1, LVNI_SELECTED); |
| 899 | if (first < 0) |
| 900 | return SelectionInfo(); |
| 901 | |
| 902 | int item = first; |
| 903 | int last = first; |
| 904 | do |
| 905 | { |
| 906 | last = item; |
| 907 | item = GetNextItem(item, LVNI_SELECTED); |
| 908 | } |
| 909 | while (item > 0); |
| 910 | |
| 911 | return SelectionInfo(m_logLines[first].line, m_logLines[last].line, last - first + 1); |
| 912 | } |
| 913 | |
| 914 | SelectionInfo CLogView::GetViewRange() const |
| 915 | { |
no test coverage detected