From 1504fb0249c6fa20678ab999dfcc4cdfc1d0ed4f Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Sat, 29 Apr 2017 10:17:38 +0100 Subject: [PATCH] use bandjoin_const from cpp --- cplusplus/include/vips/VImage8.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cplusplus/include/vips/VImage8.h b/cplusplus/include/vips/VImage8.h index 97a4856f..9d42cab6 100644 --- a/cplusplus/include/vips/VImage8.h +++ b/cplusplus/include/vips/VImage8.h @@ -532,13 +532,13 @@ public: VImage bandjoin( double other, VOption *options = 0 ) { - return( bandjoin( this->new_from_image( other ), options ) ); + return( bandjoin( to_vector( other ), options ) ); } VImage bandjoin( std::vector other, VOption *options = 0 ) { - return( bandjoin( this->new_from_image( other ), options ) ); + return( bandjoin_const( other, options ) ); } std::complex minpos( VOption *options = 0 );