Commit 0a10ea00 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

Improved version of Piotr Caban's bugfix patch "Fixed display bug".

parent 5590c8d1
/*
* Winefile
*
* Copyright 2000, 2003, 2004 Martin Fuchs
* Copyright 2000, 2003, 2004, 2005 Martin Fuchs
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -2307,12 +2307,12 @@ static void calc_single_width(Pane* pane, int col)
/* insert listbox entries after index idx */
static void insert_entries(Pane* pane, Entry* dir, int idx)
static int insert_entries(Pane* pane, Entry* dir, int idx)
{
Entry* entry = dir;
if (!entry)
return;
return idx;
ShowWindow(pane->hwnd, SW_HIDE);
......@@ -2337,13 +2337,13 @@ static void insert_entries(Pane* pane, Entry* dir, int idx)
ListBox_InsertItemData(pane->hwnd, idx, entry);
if (pane->treePane && entry->expanded) {
insert_entries(pane, entry->down, idx);
idx = ListBox_GetCount(pane->hwnd)-1;
}
if (pane->treePane && entry->expanded)
idx = insert_entries(pane, entry->down, idx);
}
ShowWindow(pane->hwnd, SW_SHOW);
return idx;
}
......
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