MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / GetSelectedRange

Method GetSelectedRange

DebugView++/LogView.cpp:896–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

894}
895
896SelectionInfo 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
914SelectionInfo CLogView::GetViewRange() const
915{

Callers 1

UpdateStatusBarMethod · 0.80

Calls 1

SelectionInfoClass · 0.70

Tested by

no test coverage detected