mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:07:35 +00:00
LibLine: Unify the is-empty flag in Style::unify_with() as well
Not doing so can make the final unified state incorrectly marked as empty, and will make LibLine ignore the style.
This commit is contained in:
parent
a6d1307aa4
commit
e312d6530b
1 changed files with 2 additions and 0 deletions
|
@ -1709,6 +1709,8 @@ void Style::unify_with(Style const& other, bool prefer_other)
|
||||||
// Unify links.
|
// Unify links.
|
||||||
if (prefer_other || m_hyperlink.is_empty())
|
if (prefer_other || m_hyperlink.is_empty())
|
||||||
m_hyperlink = other.hyperlink();
|
m_hyperlink = other.hyperlink();
|
||||||
|
|
||||||
|
m_is_empty &= other.m_is_empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
DeprecatedString Style::to_deprecated_string() const
|
DeprecatedString Style::to_deprecated_string() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue