[babl] babl: babl-fish-reference remove superfluous set of dst_img->type[0]



commit b40ac5837e558b20a0af1ea617563e09f2c77109
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu Feb 25 20:15:06 2021 +0100

    babl: babl-fish-reference remove superfluous set of dst_img->type[0]
    
    As reported by Rafał Mikrut, fixing issue #57.

 babl/babl-fish-reference.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/babl/babl-fish-reference.c b/babl/babl-fish-reference.c
index a62f32ae1..2725e3ef4 100644
--- a/babl/babl-fish-reference.c
+++ b/babl/babl-fish-reference.c
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]