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 );