From ad62b9afe77488c1fc74e8500d0bdb5dd42e0409 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 20 Oct 2016 00:27:36 +0200 Subject: [PATCH] filebrowser: fix 4a9f0cad640137d243772c7b3ebcacc64d80bd00; vol. 2 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/efa4cae487c953db93e7213542bf84011e132f2a Author: vanhofen Date: 2016-10-20 (Thu, 20 Oct 2016) Origin message was: ------------------ - filebrowser: fix 4a9f0cad640137d243772c7b3ebcacc64d80bd00; vol. 2 ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/filebrowser.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index 0c3e5547e..8a0f84f26 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -1173,7 +1173,11 @@ void CFileBrowser::paintItem(unsigned int pos) unsigned int currpos = liststart + pos; if (currpos >= filelist.size()) + { + // just paint an empty line + frameBuffer->paintBoxRel(x,ypos, width- 15, fheight, COL_MENUCONTENT_PLUS_0); return; + } actual_file = &filelist[currpos];