From 8c5a09712e5d41c12260bf6dcdf86afaa81702a7 Mon Sep 17 00:00:00 2001 From: micha-bbg Date: Tue, 27 Nov 2012 12:12:59 +0100 Subject: [PATCH] * Moviebrowser: Fix segfault if movie list is empty --- src/gui/widget/listframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/listframe.cpp b/src/gui/widget/listframe.cpp index 7484f1148..437cdd0c9 100644 --- a/src/gui/widget/listframe.cpp +++ b/src/gui/widget/listframe.cpp @@ -392,7 +392,7 @@ void CListFrame::refreshScroll(void) int CListFrame::paintListIcon(int x, int y, int line) { int xDiff = 0; - if (m_pLines->Icon[line] != "") { + if ((!m_pLines->Icon.empty()) && (m_pLines->Icon[line] != "")) { int icol_w, icol_h; frameBuffer->getIconSize(m_pLines->Icon[line].c_str(), &icol_w, &icol_h); if ((icol_w > 0) && (icol_h > 0)) {