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];