]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/gaugemsw.cpp
compilation fix for non-threaded compilation (threads are still broken
[wxWidgets.git] / src / msw / gaugemsw.cpp
index 542c1231638dd064ba77987fabc5ca444b2b4484..cb8c2b91d518c5a132a13436bc8712fe2d351c33 100644 (file)
@@ -80,7 +80,9 @@ bool wxGaugeMSW::Create(wxWindow *parent, wxWindowID id,
   }
 
   SetName(name);
   }
 
   SetName(name);
+#if wxUSE_VALIDATORS
   SetValidator(validator);
   SetValidator(validator);
+#endif // wxUSE_VALIDATORS
 
   if (parent) parent->AddChild(this);
   m_rangeMax = range;
 
   if (parent) parent->AddChild(this);
   m_rangeMax = range;