babl: babl-fish-reference remove superfluous set of dst_img->type[0]
authorØyvind Kolås <pippin@gimp.org>
Thu, 25 Feb 2021 19:15:06 +0000 (20:15 +0100)
committerØyvind Kolås <pippin@gimp.org>
Thu, 25 Feb 2021 19:15:09 +0000 (20:15 +0100)
As reported by Rafał Mikrut, fixing issue #57.

babl/babl-fish-reference.c

index a62f32ae1ecdc2383a4f2eff3c1893c6cf775a79..2725e3ef4ffaad0744aa47b10112ce9ec0f68a32 100644 (file)
@@ -358,7 +358,6 @@ ncomponent_convert_from_double (BablFormat *destination_fmt,
   src_img->stride[0] = 0;
 
   dst_img->data[0]  = destination_buf;
-  dst_img->type[0]  = (BablType *) babl_type_from_id (BABL_DOUBLE);
   dst_img->pitch[0] = destination_fmt->type[0]->bits/8;
   dst_img->stride[0] = 0;
 
@@ -480,7 +479,6 @@ ncomponent_convert_from_float (BablFormat *source_fmt,
   src_img->stride[0] = 0;
 
   dst_img->data[0]  = destination_buf;
-  dst_img->type[0]  = (BablType *) babl_type_from_id (BABL_FLOAT);
   dst_img->pitch[0] = destination_fmt->type[0]->bits/8;
   dst_img->stride[0] = 0;