Branch: Tag:

2001-04-10

2001-04-10 19:22:34 by Mirar (Pontus Hagland) <pike@sort.mirar.org>

bugfix in clone_this layer; THIS->misc might be 0, it then dumped core (or worse)

Rev: src/modules/Image/layers.c:1.68

1:   /*   **! module Image   **! note - **! $Id: layers.c,v 1.67 2001/03/30 01:42:53 per Exp $ + **! $Id: layers.c,v 1.68 2001/04/10 19:22:34 mirar Exp $   **! class Layer   **! see also: layers   **!
216:      #include <math.h> /* floor */    - RCSID("$Id: layers.c,v 1.67 2001/03/30 01:42:53 per Exp $"); + RCSID("$Id: layers.c,v 1.68 2001/04/10 19:22:34 mirar Exp $");      #include "image_machine.h"   
3034:    l->row_func=THIS->row_func;    l->optimize_alpha=THIS->optimize_alpha;    l->really_optimize_alpha=THIS->really_optimize_alpha; -  l->misc = copy_mapping( THIS->misc ); +  if (THIS->misc) l->misc = copy_mapping( THIS->misc );    return l;   }