Index: views/controls/table/table_view.cc |
diff --git a/views/controls/table/table_view.cc b/views/controls/table/table_view.cc |
index 2eaab2b6a9779a00c343c89cecdd92d07bcedda4..cd7541a29be64c7ea06ec91d874f7c1723be7e1f 100644 |
--- a/views/controls/table/table_view.cc |
+++ b/views/controls/table/table_view.cc |
@@ -1406,11 +1406,15 @@ void TableView::UpdateListViewCache0(int start, int length, bool add) { |
LVITEM item = {0}; |
if (add) { |
const bool has_groups = model_->HasGroups(); |
- item.mask = has_groups ? (LVIF_GROUPID | LVIF_PARAM) : LVIF_PARAM; |
for (int i = start; i < start + length; ++i) { |
+ item.mask = has_groups ? (LVIF_GROUPID | LVIF_PARAM) : LVIF_PARAM; |
item.iItem = i; |
if (has_groups) |
item.iGroupId = model_->GetGroupID(i); |
+ if (model_->ShouldIndent(i)) { |
+ item.mask |= LVIF_INDENT; |
+ item.iIndent = 1; |
+ } |
item.lParam = i; |
ListView_InsertItem(list_view_, &item); |
} |