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:
parent
f696c51566
commit
b0dcfa0365
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue