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