rpms/gimp/devel gimp-2.6.7-jpeg-units.patch,NONE,1.1
Nils Philippsen
nphilipp at fedoraproject.org
Tue Nov 17 11:27:03 UTC 2009
- Previous message (by thread): rpms/gimp/F-11 gimp-2.6.7-bmp-hardening.patch, NONE, 1.1 gimp-2.6.7-jpeg-units.patch, NONE, 1.1 gimp-2.6.7-psd-hardening.patch, NONE, 1.1 gimp.spec, 1.194, 1.195 gimp-2.6.2-jpeg-units.patch, 1.1, NONE
- Next message (by thread): [pkgdb] jgraph ownership updated
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: nphilipp
Update of /cvs/pkgs/rpms/gimp/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv728
Added Files:
gimp-2.6.7-jpeg-units.patch
Log Message:
avoid overflow in the BMP image file plugin (#537356)
avoid overflow in the PSD image file plugin (#537370)
update jpeg-units patch
gimp-2.6.7-jpeg-units.patch:
jpeg-save.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--- NEW FILE gimp-2.6.7-jpeg-units.patch ---
commit f6f34fd0cd6d523cc472351bcdc9b9ae180aac41
Author: Sven Neumann <sven at gimp.org>
Date: Mon Nov 3 16:39:20 2008 +0000
patch: jpeg-units
Bug 559081 – JPEG Save dialog preview should adjust size units
2008-11-03 Sven Neumann <sven at gimp.org>
Bug 559081 – JPEG Save dialog preview should adjust size units
* plug-ins/file-jpeg/jpeg-save.c: use
g_format_size_for_display()
to display the JPEG file size.
svn path=/trunk/; revision=27532
Signed-off-by: Nils Philippsen <nils at redhat.com>
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 2d0d249..35cda17 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -192,14 +192,14 @@ background_jpeg_save (PreviewPersistent *pp)
/* display the preview stuff */
if (!pp->abort_me)
{
- struct stat buf;
- gchar temp[128];
+ struct stat buf;
+ gchar *text;
g_stat (pp->file_name, &buf);
- g_snprintf (temp, sizeof (temp),
- _("File size: %02.01f kB"),
- (gdouble) (buf.st_size) / 1024.0);
- gtk_label_set_text (GTK_LABEL (preview_size), temp);
+ text = g_strdup_printf (_("File size: %s"),
+ g_format_size_for_display (buf.st_size));
+ gtk_label_set_text (GTK_LABEL (preview_size), text);
+ g_free (text);
/* and load the preview */
load_image (pp->file_name, GIMP_RUN_NONINTERACTIVE, TRUE, NULL);
- Previous message (by thread): rpms/gimp/F-11 gimp-2.6.7-bmp-hardening.patch, NONE, 1.1 gimp-2.6.7-jpeg-units.patch, NONE, 1.1 gimp-2.6.7-psd-hardening.patch, NONE, 1.1 gimp.spec, 1.194, 1.195 gimp-2.6.2-jpeg-units.patch, 1.1, NONE
- Next message (by thread): [pkgdb] jgraph ownership updated
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list