diff --git a/src/richtext/richtextimagedlg.cpp b/src/richtext/richtextimagedlg.cpp index 4ca4a641be..982df5ecf2 100644 --- a/src/richtext/richtextimagedlg.cpp +++ b/src/richtext/richtextimagedlg.cpp @@ -16,6 +16,9 @@ #pragma hdrstop #endif + +#if wxUSE_RICHTEXT + #ifndef WX_PRECOMP #include "wx/button.h" #include "wx/combobox.h" @@ -508,3 +511,4 @@ void wxRichTextImageDialog::OnRichtextimagedialogDownClick( wxCommandEvent& WXUN m_image->SetRange(wxRichTextRange(rg.GetEnd(), rg.GetEnd())); } +#endif