From 1d1f045f110546e124a02572a7bef21556aaac4a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 13 Jan 2015 17:05:14 +0000 Subject: [PATCH] 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 --- src/richtext/richtextbuffer.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 2e4a8119b2..3c6724929b 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -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;