Fixes for list style dialog and bullet drawing when no left subindent is specified
This commit is contained in:
@@ -5018,7 +5018,7 @@ bool wxRichTextParagraph::Layout(wxDC& dc, wxRichTextDrawingContext& context, co
|
||||
}
|
||||
|
||||
// Make space for a bullet with no subindent.
|
||||
if ((leftIndent == 0) && (attr.GetBulletStyle() != wxTEXT_ATTR_BULLET_STYLE_NONE))
|
||||
if ((leftSubIndent == 0) && (attr.GetBulletStyle() != wxTEXT_ATTR_BULLET_STYLE_NONE))
|
||||
{
|
||||
wxSize bulletSize;
|
||||
if (wxRichTextBuffer::GetRenderer() && wxRichTextBuffer::GetRenderer()->MeasureBullet(this, dc, attr, bulletSize))
|
||||
|
@@ -693,7 +693,10 @@ bool wxRichTextListStylePage::TransferDataFromWindow()
|
||||
|
||||
// if (m_hasBulletSymbol)
|
||||
{
|
||||
attr->SetBulletText(m_symbolCtrl->GetValue());
|
||||
if (!m_symbolCtrl->GetValue().IsEmpty())
|
||||
attr->SetBulletText(m_symbolCtrl->GetValue());
|
||||
else
|
||||
attr->SetFlags(attr->GetFlags() & ~wxTEXT_ATTR_BULLET_TEXT);
|
||||
attr->SetBulletFont(m_symbolFontCtrl->GetValue());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user