diff src/pan-folder.c @ 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 d6a7fb4b8e7c
children 4fe8f9656107
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,