Commit bae5bae7 authored by Adrian Likins's avatar Adrian Likins
Browse files

*plug-ins/ edge.c added a check so it woudlnt segfault when passed a

      *plug-ins/ edge.c
                added a check so it woudlnt segfault when
        passed a non-existend drawable

        threshold_alpha  added a non-interactive mode

        *app/brightness_contrast.c
         app/color_balance.c
         app/colormaps.c
         app/curves.c
         app/hue_saturation.c
         app/posterize.c
         app/threshold.c

                -added a check so it wouldnt except
         a indexed drawable. This was previosly possible via the pdb.

-adrian
parent 88bcda0a
Sat Jan 31 20:49:11 EST 1998 Adrian Likins <adrian@gimp.org>
*plug-ins/ edge.c
added a check so it woudlnt segfault when
passed a non-existend drawable
threshold_alpha added a non-interactive mode
*app/brightness_contrast.c
app/color_balance.c
app/colormaps.c
app/curves.c
app/hue_saturation.c
app/posterize.c
app/threshold.c
-added an additioanl check so it wouldnt except
a indexed drawable. This was previosly possible via the pdb.
Sat Jan 31 00:16:22 PST 1998 Manish Singh <yosh@gimp.org>
* plug-ins/xpm/xpm.c: Changed to use g_strcasecmp
......
......@@ -954,6 +954,10 @@ color_balance_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* transfer_mode */
if (success)
{
......
......@@ -1350,6 +1350,11 @@ curves_spline_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......@@ -1498,6 +1503,10 @@ curves_explicit_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......
......@@ -1099,6 +1099,10 @@ hue_saturation_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* hue_range */
if (success)
{
......
......@@ -676,6 +676,10 @@ threshold_invoker (args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* low threhsold */
if (success)
{
......
......@@ -702,6 +702,10 @@ brightness_contrast_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* brightness */
if (success)
{
......
......@@ -954,6 +954,10 @@ color_balance_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* transfer_mode */
if (success)
{
......
......@@ -205,6 +205,7 @@ get_standard_colormaps ()
if (g_visual->depth == 8 && info->reserved_pixels == NULL) {
g_print("GIMP cannot get enough colormaps to boot.\n");
g_print("Try exiting other color intensive applications.\n");
g_print("Also try enabling the (install-colormap) option in gimprc.\n");
swapping_free ();
brushes_free ();
patterns_free ();
......
......@@ -1350,6 +1350,11 @@ curves_spline_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......@@ -1498,6 +1503,10 @@ curves_explicit_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......
......@@ -1099,6 +1099,10 @@ hue_saturation_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* hue_range */
if (success)
{
......
......@@ -1523,6 +1523,10 @@ levels_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......
......@@ -507,6 +507,10 @@ posterize_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* levels */
if (success)
{
......
......@@ -676,6 +676,10 @@ threshold_invoker (args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* low threhsold */
if (success)
{
......
......@@ -702,6 +702,10 @@ brightness_contrast_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* brightness */
if (success)
{
......
......@@ -954,6 +954,10 @@ color_balance_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* transfer_mode */
if (success)
{
......
......@@ -1350,6 +1350,11 @@ curves_spline_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......@@ -1498,6 +1503,10 @@ curves_explicit_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......
......@@ -702,6 +702,10 @@ brightness_contrast_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* brightness */
if (success)
{
......
......@@ -954,6 +954,10 @@ color_balance_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* transfer_mode */
if (success)
{
......
......@@ -1350,6 +1350,11 @@ curves_spline_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......@@ -1498,6 +1503,10 @@ curves_explicit_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* channel */
if (success)
{
......
......@@ -1099,6 +1099,10 @@ hue_saturation_invoker (Argument *args)
if (drawable == NULL || gimage != drawable_gimage (drawable))
success = FALSE;
}
/* make sure the drawable is not indexed color */
if (success)
success = ! drawable_indexed (drawable);
/* hue_range */
if (success)
{
......
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