Commit bc539b9a authored by Manish Singh's avatar Manish Singh

do "-" to "_" conversion after an failed pdb lookup, just to make sure

* app/batch.c: do "-" to "_" conversion after an failed pdb lookup, just to
make sure

* app/paint_core.c: fix for some uninitialized vars

-Yosh
parent 8024078a
Tue May 26 12:03:07 PDT 1998 Manish Singh <yosh@gimp.org>
* app/batch.c: do "-" to "_" conversion after an failed pdb
lookup, just to make sure
* app/paint_core.c: fix for some uninitialized vars
Tue May 26 01:17:14 PDT 1998 Manish Singh <yosh@gimp.org> Tue May 26 01:17:14 PDT 1998 Manish Singh <yosh@gimp.org>
* gimptool.in: added --install-script. Use @INSTALL@ stuff * gimptool.in: added --install-script. Use @INSTALL@ stuff
...@@ -6,7 +13,7 @@ Tue May 26 01:17:14 PDT 1998 Manish Singh <yosh@gimp.org> ...@@ -6,7 +13,7 @@ Tue May 26 01:17:14 PDT 1998 Manish Singh <yosh@gimp.org>
* libgimp/gimplayer.c: fixes for silly errors from Marc Lehmann * libgimp/gimplayer.c: fixes for silly errors from Marc Lehmann
* libgimp/gimpchannel.c: implemented gimp_channel_set_show_masked * libgimp/gimpchannel.c: implemented gimp_channel_set_show_masked
and gimp_channel_get_show_masked (already in gimp.h> and gimp_channel_get_show_masked (already in gimp.h)
* plug-ins/blinds/blinds.c * plug-ins/blinds/blinds.c
* plug-ins/bmp/bmp.h * plug-ins/bmp/bmp.h
......
...@@ -178,6 +178,7 @@ batch_run_cmd (char *cmd) ...@@ -178,6 +178,7 @@ batch_run_cmd (char *cmd)
Argument *vals; Argument *vals;
char *rest; char *rest;
char *cmdname; char *cmdname;
char *tmpname;
char *t; char *t;
int i; int i;
...@@ -194,8 +195,23 @@ batch_run_cmd (char *cmd) ...@@ -194,8 +195,23 @@ batch_run_cmd (char *cmd)
proc = procedural_db_lookup (cmdname); proc = procedural_db_lookup (cmdname);
if (!proc) if (!proc)
{ {
g_print ("could not find procedure: \"%s\"\n", cmdname); /* Lame hack for "-" to "_" conversion */
return; t = tmpname = g_strdup (cmdname);
while (*t)
{
if (*t == '-')
*t = '_';
t++;
}
proc = procedural_db_lookup (tmpname);
if (!proc)
{
g_print ("could not find procedure: \"%s\"\n", cmdname);
return;
}
g_free (tmpname);
} }
/* (gimp-procedural-db-dump "/tmp/pdb_dump") */ /* (gimp-procedural-db-dump "/tmp/pdb_dump") */
......
...@@ -913,8 +913,8 @@ paint_core_replace (paint_core, brush_mask, drawable, brush_opacity, image_opaci ...@@ -913,8 +913,8 @@ paint_core_replace (paint_core, brush_mask, drawable, brush_opacity, image_opaci
maskPR.bytes = 1; maskPR.bytes = 1;
maskPR.x = 0; maskPR.y = 0; maskPR.x = 0; maskPR.y = 0;
maskPR.w = srcPR.w; maskPR.w = canvas_buf->width;
maskPR.h = srcPR.h; maskPR.h = canvas_buf->height;
maskPR.rowstride = maskPR.bytes * brush_mask->width; maskPR.rowstride = maskPR.bytes * brush_mask->width;
maskPR.data = mask_buf_data (brush_mask); maskPR.data = mask_buf_data (brush_mask);
......
...@@ -913,8 +913,8 @@ paint_core_replace (paint_core, brush_mask, drawable, brush_opacity, image_opaci ...@@ -913,8 +913,8 @@ paint_core_replace (paint_core, brush_mask, drawable, brush_opacity, image_opaci
maskPR.bytes = 1; maskPR.bytes = 1;
maskPR.x = 0; maskPR.y = 0; maskPR.x = 0; maskPR.y = 0;
maskPR.w = srcPR.w; maskPR.w = canvas_buf->width;
maskPR.h = srcPR.h; maskPR.h = canvas_buf->height;
maskPR.rowstride = maskPR.bytes * brush_mask->width; maskPR.rowstride = maskPR.bytes * brush_mask->width;
maskPR.data = mask_buf_data (brush_mask); maskPR.data = mask_buf_data (brush_mask);
......
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