diff --git a/src/utils/joinrgb.cpp b/src/utils/joinrgb.cpp index 0a11b7bb..5633b09a 100644 --- a/src/utils/joinrgb.cpp +++ b/src/utils/joinrgb.cpp @@ -38,7 +38,7 @@ void joinRGB(const std::string &s1, const std::string &s2, const std::string &s3 float *outData = outBitmap->getFloatData(); int width = rBitmap->getWidth(); - for (int y=0; ygetWidth(); ++y) { + for (int y=0; ygetHeight(); ++y) { for (int x=0; xgetWidth(); ++x) { float r = rData[(x + y * width) * 4]; float g = gData[(x + y * width) * 4 + 1];