]> git.saurik.com Git - wxWidgets.git/commitdiff
Correct #if markup to spin-based controls handling.
authorWłodzimierz Skiba <abx@abx.art.pl>
Wed, 22 Sep 2004 06:22:34 +0000 (06:22 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Wed, 22 Sep 2004 06:22:34 +0000 (06:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xrc/xh_spin.cpp

index 73c96c7a430c85e979008eba77713318bc036832..3398ffaad1733141b61fa6659bb48afd777cefc5 100644 (file)
     #pragma hdrstop
 #endif
 
-#if wxUSE_XRC && wxUSE_SPINBTN
+#if wxUSE_XRC
 
 #include "wx/xrc/xh_spin.h"
-#include "wx/spinctrl.h"
+
+#if wxUSE_SPINBTN
+
+#include "wx/spinbutt.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxSpinButtonXmlHandler, wxXmlResourceHandler)
 
@@ -63,6 +66,8 @@ bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
 
 #if wxUSE_SPINCTRL
 
+#include "wx/spinctrl.h"
+
 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrlXmlHandler, wxXmlResourceHandler)
 
 wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler()
@@ -98,4 +103,6 @@ bool wxSpinCtrlXmlHandler::CanHandle(wxXmlNode *node)
     return IsOfClass(node, wxT("wxSpinCtrl"));
 }
 
-#endif // wxUSE_XRC && wxUSE_SPINCTRL
+#endif // wxUSE_SPINCTRL
+
+#endif // wxUSE_XRC