Commit 2d2e6acb authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

We should always have a main item in report mode.

parent 7e128410
...@@ -1219,6 +1219,9 @@ static inline BOOL is_autoarrange(LISTVIEW_INFO *infoPtr) ...@@ -1219,6 +1219,9 @@ static inline BOOL is_autoarrange(LISTVIEW_INFO *infoPtr)
static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(LISTVIEW_INFO *infoPtr, INT nSubItem) static inline COLUMN_INFO * LISTVIEW_GetColumnInfo(LISTVIEW_INFO *infoPtr, INT nSubItem)
{ {
static COLUMN_INFO mainItem;
if (nSubItem == 0 && infoPtr->hdpaColumns->nItemCount == 0) return &mainItem;
assert (nSubItem >= 0 && nSubItem < infoPtr->hdpaColumns->nItemCount); assert (nSubItem >= 0 && nSubItem < infoPtr->hdpaColumns->nItemCount);
return (COLUMN_INFO *)DPA_GetPtr(infoPtr->hdpaColumns, nSubItem); return (COLUMN_INFO *)DPA_GetPtr(infoPtr->hdpaColumns, nSubItem);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment