diff --git a/CImg.h b/CImg.h index 70af8dbe..844a313d 100644 --- a/CImg.h +++ b/CImg.h @@ -50721,9 +50721,12 @@ namespace cimg_library { const int posx = x + left_paddings[i] + padding_x; for (unsigned int c = 0; c<_spectrum; c+=letter._spectrum) { + if (c) letter = font[ch]; const unsigned int cmin = std::min(_spectrum - c,letter._spectrum); - if (foreground_color[c]!=255) - for (unsigned int d = 0; d