diff --git a/CImg.h b/CImg.h
index 1ef09d9071e36b4a453ded1dbb72ca4a1f25b2aa..70f9ff5e620c6f84752364374d9357059c2fa595 100644
--- a/CImg.h
+++ b/CImg.h
@@ -59650,7 +59650,8 @@ namespace cimg_library_suffixed {
           if (ptrd + n<=ptrde) { std::memset(ptrd,v,n); ptrd+=n; }
           else { std::memset(ptrd,v,ptrde - ptrd); break; }
         }
-        base_font.get_shared_row(base_font.height()-1).fill(0); // Remove wrong pixels on last line
+        if (data_ind>=1 && data_ind<=2)
+          base_font.get_shared_row(base_font.height()-1).fill(0); // Remove wrong pixels on last line
       }
 
       // Find optimal font cache location to return.