X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fd4344d64dfeffa3522364691c5e737b6ca04612..3b7fa2069b9f69c9da5783e04c7a935927eb403f:/src/xrc/xh_richtext.cpp

diff --git a/src/xrc/xh_richtext.cpp b/src/xrc/xh_richtext.cpp
index f8b08cc839..0d8146785f 100644
--- a/src/xrc/xh_richtext.cpp
+++ b/src/xrc/xh_richtext.cpp
@@ -15,7 +15,7 @@
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC && wxUSE_RICHTEXT
+#if wxUSE_XRC && wxUSE_RICHTEXT && wxUSE_RICHTEXT_XML_HANDLER
 
 #include "wx/xrc/xh_richtext.h"