diff --git a/src/richtext/richtextstyles.cpp b/src/richtext/richtextstyles.cpp index f34d5a1f12..bb6bc5dc9d 100644 --- a/src/richtext/richtextstyles.cpp +++ b/src/richtext/richtextstyles.cpp @@ -868,7 +868,11 @@ wxString wxRichTextStyleListBox::CreateHTML(wxRichTextStyleDefinition* def) cons if (hasUnderline) str << wxT(""); - 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("");