From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Sun, 8 Oct 2006 23:14:29 +0000 (+0000)
Subject: need to include wx/imaglist.h even when using PCH
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/62b51bfb302dd4a677e2a81b9e1963ea1f9d78d4

need to include wx/imaglist.h even when using PCH


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/richtext/richtextformatdlg.cpp b/src/richtext/richtextformatdlg.cpp
index 9a7d80afd8..b21d5e7b09 100644
--- a/src/richtext/richtextformatdlg.cpp
+++ b/src/richtext/richtextformatdlg.cpp
@@ -16,7 +16,7 @@
     #pragma hdrstop
 #endif
 
-#include "wx/defs.h"
+#if wxUSE_RICHTEXT
 
 #ifndef WX_PRECOMP
     #include "wx/listbox.h"
@@ -30,18 +30,16 @@
     #include "wx/bitmap.h"
     #include "wx/dcclient.h"
     #include "wx/frame.h"
-    #include "wx/imaglist.h"
     #include "wx/checkbox.h"
     #include "wx/button.h"
 #endif // WX_PRECOMP
 
-#if wxUSE_RICHTEXT
-
 #include "wx/bookctrl.h"
 #include "wx/colordlg.h"
 #include "wx/fontenum.h"
 #include "wx/settings.h"
 #include "wx/module.h"
+#include "wx/imaglist.h"
 
 #include "wx/richtext/richtextformatdlg.h"
 #include "wx/richtext/richtextctrl.h"