Index: gnome-thumbnail.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-thumbnail.c,v
retrieving revision 1.21
diff -u -p -r1.21 gnome-thumbnail.c
--- gnome-thumbnail.c	15 Jan 2006 21:48:26 -0000	1.21
+++ gnome-thumbnail.c	25 Jan 2006 20:06:52 -0000
@@ -1171,7 +1171,17 @@ gnome_thumbnail_factory_save_thumbnail (
   
   g_snprintf (mtime_str, 21, "%lu",  original_mtime);
   width = g_object_get_data (G_OBJECT (thumbnail), "gnome-thumbnail-width");
+  if (width == NULL) {
+	  width = g_strdup_printf ("%i", gdk_pixbuf_get_width (thumbnail));
+	  g_object_set_data_full (G_OBJECT (thumbnail), 
+				  "gnome-thumbnail-width", width, g_free);
+  }
   height = g_object_get_data (G_OBJECT (thumbnail), "gnome-thumbnail-height");
+  if (height == NULL) {
+	  height = g_strdup_printf ("%i", gdk_pixbuf_get_height (thumbnail));
+	  g_object_set_data_full (G_OBJECT (thumbnail), 
+				  "gnome-thumbnail-height", height, g_free);
+  }
   saved_ok  = gdk_pixbuf_save (thumbnail,
 			       tmp_path,
 			       "png", NULL,
