diff options
author | Tomas Saxer <tsaxer@gmx.de> | 2016-03-25 17:07:36 +0100 |
---|---|---|
committer | Tomas Saxer <tsaxer@gmx.de> | 2016-03-25 17:07:36 +0100 |
commit | c1b3656a1d0e658054c8d8d809d74ad57c680091 (patch) | |
tree | 24e8b2a054cef765f31b65d98cc576832575910b /detailView.cpp | |
parent | 2c6f8aa0d218980a35a86499875fad290d1dfd1c (diff) | |
download | vdr-plugin-plex-c1b3656a1d0e658054c8d8d809d74ad57c680091.tar.gz vdr-plugin-plex-c1b3656a1d0e658054c8d8d809d74ad57c680091.tar.bz2 |
Small fix for {hasscrollbar}
Diffstat (limited to 'detailView.cpp')
-rw-r--r-- | detailView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/detailView.cpp b/detailView.cpp index 832956e..397247e 100644 --- a/detailView.cpp +++ b/detailView.cpp @@ -138,7 +138,7 @@ void cDetailView::DrawScrollbar() m_pScrollbar->Clear(); m_pScrollbar->ClearTokens(); - if (m_vElements.size() > 0) { + if ((int)m_vElements.size() > (m_columns * m_rows)) { int currentRow = SelectedObject()->AbsolutePosition / m_columns; int totalRows = ceil((double) m_vElements.size() / m_columns); |