X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..c50f1fb9226d9260454ccb9c8a67d0be23c2827f:/src/gtk1/bmpbuttn.cpp diff --git a/src/gtk1/bmpbuttn.cpp b/src/gtk1/bmpbuttn.cpp index 71e20e97f2..6661b99efd 100644 --- a/src/gtk1/bmpbuttn.cpp +++ b/src/gtk1/bmpbuttn.cpp @@ -122,7 +122,9 @@ bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi PreCreation( parent, id, pos, newSize, style, name ); +#if wxUSE_VALIDATORS SetValidator( validator ); +#endif m_bitmap = bitmap; m_disabled = bitmap;