X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c6e84b696abcfce168a373b253719d5ab542a8b..83576e682dd00c5ff68c3daafbdee54ce881cc83:/src/richtext/richtextstyledlg.cpp diff --git a/src/richtext/richtextstyledlg.cpp b/src/richtext/richtextstyledlg.cpp index 8ffb037227..79080f7959 100644 --- a/src/richtext/richtextstyledlg.cpp +++ b/src/richtext/richtextstyledlg.cpp @@ -456,6 +456,7 @@ iaculis malesuada. Donec bibendum ipsum ut ante porta fringilla.\n"); if (listDef) { + long listStart = m_previewCtrl->GetInsertionPoint() + 1; int i; for (i = 0; i < 10; i++) { @@ -465,6 +466,8 @@ iaculis malesuada. Donec bibendum ipsum ut ante porta fringilla.\n"); m_previewCtrl->WriteText(wxString::Format(wxT("\nList level %d. "), i+1) + s_para2List); m_previewCtrl->EndStyle(); } + long listEnd = m_previewCtrl->GetInsertionPoint(); + m_previewCtrl->NumberList(wxRichTextRange(listStart, listEnd), listDef); } else {