Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
codecat committed Aug 5, 2017
1 parent cb6ac89 commit 5130d33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/nimble/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ void na::Application::Draw()
break;
}
}
for (int i = pageStartIndex; i < (int)m_pages.len(); i++) {
PageWidget* page = m_pages[i];
page->Draw(m_nvg);
if (pageStartIndex >= 0) {
for (int i = pageStartIndex; i < (int)m_pages.len(); i++) {
PageWidget* page = m_pages[i];
page->Draw(m_nvg);
}
}

nvgEndFrame(m_nvg);
Expand Down

0 comments on commit 5130d33

Please sign in to comment.