mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Prevent pasting invisible text
This commit is contained in:
parent
f696c51566
commit
b0dcfa0365
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ public class HtmlHelper {
|
||||||
// Special case:
|
// Special case:
|
||||||
// external draft: very dark/light font
|
// external draft: very dark/light font
|
||||||
double lum = ColorUtils.calculateLuminance(color);
|
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;
|
color = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue