]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_sttxt.cpp
remove the selection when SetSelection(-1) is called instead of asserting (as documented)
[wxWidgets.git] / src / xrc / xh_sttxt.cpp
index a65e2b4b4fdcba43b14f6c4637ecb89586f785b3..da772ef4165eaa2a281d062845da2f0916f5b851 100644 (file)
@@ -19,6 +19,8 @@
     #pragma hdrstop
 #endif
 
+#if wxUSE_XRC
+
 #include "wx/xrc/xh_sttxt.h"
 #include "wx/stattext.h"
 
@@ -54,3 +56,5 @@ bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node)
 {
     return IsOfClass(node, wxT("wxStaticText"));
 }
+
+#endif // wxUSE_XRC