Fix ListView implementation in C++

Regressed in commit 4da79ac69a
This commit is contained in:
Olivier Goffart 2025-01-22 12:32:13 +01:00
parent d3cec1f269
commit 3d664578dd
2 changed files with 17 additions and 1 deletions

View file

@ -1244,7 +1244,7 @@ public:
vp_width = std::max(vp_width, (*x.ptr)->listview_layout(&offset));
}
viewport_width->set(vp_width);
return offset;
return offset - viewport_y;
}
void model_set_row_data(size_t row, const ModelData &data) const