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:
@@ -4830,16 +4830,6 @@ bool wxRichTextParagraph::Draw(wxDC& dc, wxRichTextDrawingContext& context, cons
|
|||||||
|
|
||||||
wxRichTextAttr bulletAttr(attr);
|
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
|
// Get line height from first line, if any
|
||||||
wxRichTextLine* line = m_cachedLines.GetFirst() ? (wxRichTextLine* ) m_cachedLines.GetFirst()->GetData() : NULL;
|
wxRichTextLine* line = m_cachedLines.GetFirst() ? (wxRichTextLine* ) m_cachedLines.GetFirst()->GetData() : NULL;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user