mirror of https://github.com/GNOME/gimp.git
merged fix for bug #92394 from stable branch.
2002-09-03 Sven Neumann <sven@gimp.org> * plug-ins/gimpressionist/ppmtool.c (saveppm): merged fix for bug #92394 from stable branch.
This commit is contained in:
parent
0d91f5a8c3
commit
e0de275828
|
@ -1,3 +1,8 @@
|
|||
2002-09-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/gimpressionist/ppmtool.c (saveppm): merged fix for
|
||||
bug #92394 from stable branch.
|
||||
|
||||
2002-09-02 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/core/gimpviewable.c: small speedup: use
|
||||
|
|
|
@ -11,8 +11,10 @@
|
|||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include <errno.h>
|
||||
#include "ppmtool.h"
|
||||
#include "gimpressionist.h"
|
||||
#include "libgimp/stdplugins-intl.h"
|
||||
|
||||
int readline(FILE *f, char *buffer, int len)
|
||||
{
|
||||
|
@ -490,6 +492,14 @@ void pad(struct ppm *p, int left,int right, int top, int bottom, guchar *bg)
|
|||
void saveppm(struct ppm *p, const char *fn)
|
||||
{
|
||||
FILE *f = fopen (fn, "wb");
|
||||
|
||||
if (!f)
|
||||
{
|
||||
g_message (_("GIMPressionist:\nFailed to save PPM file '%s':\n%s"),
|
||||
fn, g_strerror (errno));
|
||||
return;
|
||||
}
|
||||
|
||||
fprintf (f, "P6\n%d %d\n255\n", p->width, p->height);
|
||||
fwrite (p->col, p->width * 3 * p->height, 1, f);
|
||||
fclose (f);
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2002-09-03 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* POTFILES.in: added missing file.
|
||||
|
||||
2002-08-31 Christian Neumair <chris@gnome-de.org>
|
||||
|
||||
* de.po: Updated German translation.
|
||||
|
|
|
@ -183,6 +183,7 @@ plug-ins/gimpressionist/orientation.c
|
|||
plug-ins/gimpressionist/orientmap.c
|
||||
plug-ins/gimpressionist/paper.c
|
||||
plug-ins/gimpressionist/placement.c
|
||||
plug-ins/gimpressionist/ppmtool.c
|
||||
plug-ins/gimpressionist/presets.c
|
||||
plug-ins/gimpressionist/preview.c
|
||||
plug-ins/gimpressionist/repaint.c
|
||||
|
|
Loading…
Reference in New Issue