--- app/paint-funcs/paint-funcs-generic.h	2004-01-28 05:58:52.000000000 +0200
+++ app/paint-funcs/paint-funcs-generic.h	2004-03-25 06:46:53.000000000 +0200
@@ -1397,7 +1397,8 @@
     {
       mask_val = INT_MULT(*mask, opacity, tmp);
       mask++;
-      *src = *src + INT_MULT((255 - *src) , mask_val, tmp);
+      if (mask_val > *src)
+        *src = mask_val;
       src += bytes;
     }
   else
