reverted last change, it was bogus.

2008-12-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/file-png.c: reverted last change, it was 
bogus.


svn path=/trunk/; revision=27808
This commit is contained in:
Sven Neumann 2008-12-17 19:33:30 +00:00 committed by Sven Neumann
parent a6f377dd02
commit 91189b62b2
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2008-12-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-png.c: reverted last change, it was bogus.
2008-12-17 Sven Neumann <sven@gimp.org> 2008-12-17 Sven Neumann <sven@gimp.org>
* plug-ins/common/file-png.c (load_image) (save_image): use a tile * plug-ins/common/file-png.c (load_image) (save_image): use a tile

View File

@ -977,8 +977,6 @@ load_image (const gchar *filename,
for (i = 0; i < tile_height; i++) for (i = 0; i < tile_height; i++)
pixels[i] = pixel + info->width * info->channels * i; pixels[i] = pixel + info->width * info->channels * i;
gimp_tile_cache_ntiles (1 + drawable->width / gimp_tile_width ());
/* Install our own error handler to handle incomplete PNG files better */ /* Install our own error handler to handle incomplete PNG files better */
error_data.drawable = drawable; error_data.drawable = drawable;
error_data.pixel = pixel; error_data.pixel = pixel;
@ -1489,8 +1487,6 @@ save_image (const gchar *filename,
pixel = g_new (guchar, tile_height * drawable->width * bpp); pixel = g_new (guchar, tile_height * drawable->width * bpp);
pixels = g_new (guchar *, tile_height); pixels = g_new (guchar *, tile_height);
gimp_tile_cache_ntiles (1 + drawable->width / gimp_tile_width ());
for (i = 0; i < tile_height; i++) for (i = 0; i < tile_height; i++)
pixels[i] = pixel + drawable->width * bpp * i; pixels[i] = pixel + drawable->width * bpp * i;