oops
This commit is contained in:
parent
0d2bdac332
commit
13723a1cec
@ -314,12 +314,12 @@ im_histplot( IMAGE *in, IMAGE *out )
|
||||
{
|
||||
IMAGE *t1;
|
||||
|
||||
if( im_check_hist( "im_histplot", hist ) )
|
||||
if( im_check_hist( "im_histplot", in ) )
|
||||
return( -1 );
|
||||
|
||||
if( !(t1 = im_open_local( histplot, "im_histplot:1", "p" )) ||
|
||||
normalise( hist, t1 ) ||
|
||||
plot( t1, histplot ) )
|
||||
if( !(t1 = im_open_local( out, "im_histplot:1", "p" )) ||
|
||||
normalise( in, t1 ) ||
|
||||
plot( t1, out ) )
|
||||
return( -1 );
|
||||
|
||||
return( 0 );
|
||||
|
@ -1204,7 +1204,7 @@ im_blob_set( GValue *value,
|
||||
|
||||
g_assert( G_VALUE_TYPE( value ) == IM_TYPE_BLOB );
|
||||
|
||||
if( !(area = area_new_blob( free_fn, blob, length )) )
|
||||
if( !(area = area_new_blob( free_fn, data, length )) )
|
||||
return( -1 );
|
||||
|
||||
g_value_set_boxed( value, area );
|
||||
@ -1235,7 +1235,7 @@ im_meta_set_blob( IMAGE *im, const char *field,
|
||||
GValue value = { 0 };
|
||||
|
||||
g_value_init( &value, IM_TYPE_BLOB );
|
||||
im_blob_set( &value, free_fn, blob, length );
|
||||
im_blob_set( &value, free_fn, data, length );
|
||||
|
||||
return( meta_set_value( im, field, &value ) );
|
||||
}
|
||||
@ -1265,7 +1265,7 @@ im_meta_get_blob( IMAGE *im, const char *field,
|
||||
|
||||
if( meta_get_value( im, field, IM_TYPE_BLOB, &value_copy ) )
|
||||
return( -1 );
|
||||
*blob = im_blob_get( &value_copy, length );
|
||||
*data = im_blob_get( &value_copy, length );
|
||||
g_value_unset( &value_copy );
|
||||
|
||||
return( 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user