Commit 4fa43f5b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

plug-ins/file-jpeg/jpeg-load.c (load_image) need to finish the progress

2009-03-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/file-jpeg/jpeg-load.c (load_image)
	* plug-ins/file-jpeg/jpeg-save.c (save_image): need to finish 
the
	progress update.


svn path=/trunk/; revision=28118
parent fc794cf3
2009-03-07 Sven Neumann <sven@gimp.org>
* plug-ins/file-jpeg/jpeg-load.c (load_image)
* plug-ins/file-jpeg/jpeg-save.c (save_image): need to finish the
progress update.
2009-03-05 Sven Neumann <sven@gimp.org>
* app/widgets/gimpuimanager.c: formatting.
......
......@@ -462,7 +462,10 @@ load_image (const gchar *filename,
/* Detach from the drawable and add it to the image.
*/
if (! preview)
gimp_drawable_detach (drawable);
{
gimp_progress_update (1.0);
gimp_drawable_detach (drawable);
}
gimp_image_add_layer (image_ID, layer_ID, 0);
......
......@@ -282,7 +282,7 @@ save_image (const gchar *filename,
gimp_pixel_rgn_init (&pixel_rgn, drawable,
0, 0, drawable->width, drawable->height, FALSE, FALSE);
if (!preview)
if (! preview)
gimp_progress_init_printf (_("Saving '%s'"),
gimp_filename_to_utf8 (filename));
......@@ -733,12 +733,13 @@ save_image (const gchar *filename,
/* This is an important step since it will release a good deal of memory. */
jpeg_destroy_compress (&cinfo);
/* free the temporary buffer */
g_free (temp);
g_free (data);
/* And we're done! */
/*gimp_do_progress (1, 1);*/
gimp_progress_update (1.0);
gimp_drawable_detach (drawable);
......
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