From 5d4ca0dbbe7e4e55043f22d1d6a38421e4d9160c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 15 Sep 2018 12:39:58 +0200 Subject: [PATCH] Add support for strike through attribute to markup spans It can be handled in exactly the same way as underlining, so just do it instead of leaving a "TODO" comment about it. --- include/wx/private/markupparserattr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/wx/private/markupparserattr.h b/include/wx/private/markupparserattr.h index 9f4f14ca59..4c33b39755 100644 --- a/include/wx/private/markupparserattr.h +++ b/include/wx/private/markupparserattr.h @@ -135,7 +135,9 @@ public: font, &wxFont::SetUnderlined, false, true); - // TODO: No support for strike-through yet. + FontModifier()(spanAttr.m_isStrikethrough, + font, &wxFont::SetStrikethrough, + false, true); switch ( spanAttr.m_sizeKind ) {