1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-22 07:42:52 +00:00

Prevent pasting invisible text

This commit is contained in:
M66B 2023-01-01 19:37:52 +01:00
parent f696c51566
commit b0dcfa0365

View file

@ -763,7 +763,7 @@ public class HtmlHelper {
// Special case:
// external draft: very dark/light font
double lum = ColorUtils.calculateLuminance(color);
if (dark ? lum < 1 - MIN_LUMINANCE_COMPOSE : lum > MIN_LUMINANCE_COMPOSE)
if (lum < 1 - MIN_LUMINANCE_COMPOSE || lum > MIN_LUMINANCE_COMPOSE)
color = null;
}