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:
Ali Mohammad Pur 2023-03-20 16:35:51 +03:30 committed by Jelle Raaijmakers
parent a6d1307aa4
commit e312d6530b

View file

@ -1709,6 +1709,8 @@ void Style::unify_with(Style const& other, bool prefer_other)
// Unify links.
if (prefer_other || m_hyperlink.is_empty())
m_hyperlink = other.hyperlink();
m_is_empty &= other.m_is_empty;
}
DeprecatedString Style::to_deprecated_string() const