Capitalize style names if specified in the style

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2014-07-23 08:16:57 +00:00
parent 744dabe350
commit 52747b8628

View File

@ -868,7 +868,11 @@ wxString wxRichTextStyleListBox::CreateHTML(wxRichTextStyleDefinition* def) cons
if (hasUnderline)
str << wxT("<u>");
str += def->GetName();
wxString name(def->GetName());
if (attr.HasTextEffects() && (attr.GetTextEffects() & (wxTEXT_ATTR_EFFECT_CAPITALS|wxTEXT_ATTR_EFFECT_SMALL_CAPITALS)))
name = name.Upper();
str += name;
if (hasUnderline)
str << wxT("</u>");