summaryrefslogtreecommitdiffstats
path: root/source/widgets
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2019-12-29 20:33:34 +0100
committerDave Davenport <qball@gmpclient.org>2019-12-29 20:33:34 +0100
commit40c14768552cde9f106ecbfa79584697fffc3afb (patch)
tree7ae52b2866ec6109622695bab09eee356c8e9a1b /source/widgets
parente6bed0e5d3b6585e9e19cf6dcf4b685981ff0b84 (diff)
[Listview] Fix drawing issue
Diffstat (limited to 'source/widgets')
-rw-r--r--source/widgets/listview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c
index ced5d8f2..aaaaa497 100644
--- a/source/widgets/listview.c
+++ b/source/widgets/listview.c
@@ -424,7 +424,7 @@ static void listview_draw ( widget *wid, cairo_t *draw )
}
unsigned int element_width = ( width ) / lv->cur_columns;
- int d = lv->widget.w - (element_width+spacing_hori)*(lv->cur_columns-1)-element_width;
+ int d = width - (element_width+spacing_hori)*(lv->cur_columns-1)-element_width;
if ( lv->cur_columns > 1)
{
int diff = d/(lv->cur_columns-1);