changeset 875:f103af877504

Fix missing references for the current directory in pan folder stuff. It was causing an fd magick assertion failure. Bug reported by Omari Stephens.
author zas_
date Thu, 03 Jul 2008 18:16:39 +0000
parents fa39a4d786ad
children 2d8705f33da5
files src/pan-folder.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/pan-folder.c	Thu Jul 03 08:33:10 2008 +0000
+++ b/src/pan-folder.c	Thu Jul 03 18:16:39 2008 +0000
@@ -239,7 +239,7 @@
 
 	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,
@@ -385,7 +385,7 @@
 
 	*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,