another missing copy operation
The --page-height arg to savers needs a copy as well.
This commit is contained in:
parent
165a3a3855
commit
2e3eca7e29
@ -1640,9 +1640,19 @@ vips_foreign_save_build( VipsObject *object )
|
|||||||
save->background ) )
|
save->background ) )
|
||||||
return( -1 );
|
return( -1 );
|
||||||
|
|
||||||
if( save->page_height )
|
if( save->page_height ) {
|
||||||
|
VipsImage *x;
|
||||||
|
|
||||||
|
if( vips_copy( ready, &x, NULL ) ) {
|
||||||
|
VIPS_UNREF( ready );
|
||||||
|
return( -1 );
|
||||||
|
}
|
||||||
|
VIPS_UNREF( ready );
|
||||||
|
ready = x;
|
||||||
|
|
||||||
vips_image_set_int( ready,
|
vips_image_set_int( ready,
|
||||||
VIPS_META_PAGE_HEIGHT, save->page_height );
|
VIPS_META_PAGE_HEIGHT, save->page_height );
|
||||||
|
}
|
||||||
|
|
||||||
VIPS_UNREF( save->ready );
|
VIPS_UNREF( save->ready );
|
||||||
save->ready = ready;
|
save->ready = ready;
|
||||||
|
Loading…
Reference in New Issue
Block a user