Prevent pasting invisible text

This commit is contained in:
M66B 2023-01-01 19:37:52 +01:00
parent f696c51566
commit b0dcfa0365
1 changed files with 1 additions and 1 deletions

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;
}