Prevent pasting invisible text

pull/210/head
M66B 2 years ago
parent f696c51566
commit b0dcfa0365

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

Loading…
Cancel
Save