Bullet no longer gets the attributes from the first object in the list paragraph, so we can control it via paragraph attributes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
7a9ae4aecf
commit
1d1f045f11
@ -4830,16 +4830,6 @@ bool wxRichTextParagraph::Draw(wxDC& dc, wxRichTextDrawingContext& context, cons
|
||||
|
||||
wxRichTextAttr bulletAttr(attr);
|
||||
|
||||
// Combine with the font of the first piece of content, if one is specified
|
||||
if (GetChildren().GetCount() > 0)
|
||||
{
|
||||
wxRichTextObject* firstObj = (wxRichTextObject*) GetChildren().GetFirst()->GetData();
|
||||
if (!firstObj->IsFloatable() && firstObj->GetAttributes().HasFont())
|
||||
{
|
||||
wxRichTextApplyStyle(bulletAttr, firstObj->GetAttributes());
|
||||
}
|
||||
}
|
||||
|
||||
// Get line height from first line, if any
|
||||
wxRichTextLine* line = m_cachedLines.GetFirst() ? (wxRichTextLine* ) m_cachedLines.GetFirst()->GetData() : NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user