Skip to content

Commit

Permalink
Fix missing references for the current directory in pan folder stuff.
Browse files Browse the repository at this point in the history
It was causing an fd magick assertion failure.
Bug reported by Omari Stephens.
  • Loading branch information
Laurent Monin committed Jul 3, 2008
1 parent 83c79d4 commit 1a227f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pan-folder.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static FlowerGroup *pan_flower_group(PanWindow *pw, FileData *dir_fd, gint x, gi

y += pi_box->height;

pi_box = pan_item_box_new(pw, dir_fd,
pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
x, y,
PAN_BOX_BORDER * 2, PAN_BOX_BORDER * 2,
PAN_BOX_OUTLINE_THICKNESS,
Expand Down Expand Up @@ -385,7 +385,7 @@ static void pan_folder_tree_path(PanWindow *pw, FileData *dir_fd,

*y += pi_box->height;

pi_box = pan_item_box_new(pw, dir_fd,
pi_box = pan_item_box_new(pw, file_data_ref(dir_fd),
*x, *y,
PAN_BOX_BORDER, PAN_BOX_BORDER,
PAN_BOX_OUTLINE_THICKNESS,
Expand Down

0 comments on commit 1a227f6

Please sign in to comment.