diff --git a/app/otbHarmonizer.cxx b/app/otbHarmonizer.cxx index 1ac4c691367ca8a2abd79ef1fb74bc64a881b546..a8b3390a508e5df0bf20ba4f86c783c153bd80e9 100644 --- a/app/otbHarmonizer.cxx +++ b/app/otbHarmonizer.cxx @@ -445,8 +445,10 @@ private: if (band>0) exp << ";"; exp << "im1b" << (band+1) << "*" << b1; - if (b0 != 0) + if (b0>0) exp << "+" << b0; + else + exp << "" << b0; gain[band] = b1; offset[band] = b0;