Skip to content

Commit

Permalink
Merge pull request #338 from vlovo/master
Browse files Browse the repository at this point in the history
fix  #337
  • Loading branch information
janwilmans authored Aug 28, 2018
2 parents da69acc + cc89998 commit c61a024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DebugView++/LogView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1602,13 +1602,13 @@ int CLogView::FindLine(Predicate pred, int direction) const
SetCursor(::LoadCursor(nullptr, IDC_ARROW));
Win32::ScopedCursor cursor(::LoadCursor(nullptr, IDC_WAIT));

size_t begin = std::max(GetNextItem(-1, LVNI_FOCUSED), 0);
size_t line = begin;
int begin = std::max(GetNextItem(-1, LVNI_FOCUSED), 0);
int line = begin;

if (m_logLines.empty())
return -1;

auto size = m_logLines.size();
auto size = static_cast<int> (m_logLines.size());
do
{
line += direction;
Expand Down

0 comments on commit c61a024

Please sign in to comment.