X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41a852156fab5ee6075b3ab92f8230989547daac..83576e682dd00c5ff68c3daafbdee54ce881cc83:/src/richtext/richtextstyledlg.cpp diff --git a/src/richtext/richtextstyledlg.cpp b/src/richtext/richtextstyledlg.cpp index 0f6d2ebcc2..79080f7959 100644 --- a/src/richtext/richtextstyledlg.cpp +++ b/src/richtext/richtextstyledlg.cpp @@ -16,19 +16,15 @@ #pragma hdrstop #endif +#if wxUSE_RICHTEXT + #ifndef WX_PRECOMP #include "wx/wx.h" #endif -////@begin includes -////@end includes - #include "wx/richtext/richtextstyledlg.h" #include "wx/richtext/richtextformatdlg.h" -////@begin XPM images -////@end XPM images - /*! * wxRichTextStyleOrganiserDialog type definition */ @@ -460,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++) { @@ -469,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 { @@ -855,3 +854,7 @@ void wxRichTextStyleOrganiserDialog::OnListSelection(wxCommandEvent& event) else event.Skip(); } + +#endif + // wxUSE_RICHTEXT +