]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
cleanup mac
[wxWidgets.git] / src / motif / window.cpp
index d21948303970187067c9404e35d1dfd3ea3ac995..17373e001a633252bf5fa2894566afc5fd75f1c6 100644 (file)
@@ -230,6 +230,11 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id,
                       long style,
                       const wxString& name)
 {
+    // Get default border
+    wxBorder border = GetBorder(style);
+    style &= ~wxBORDER_MASK;
+    style |= border;
+
     wxCHECK_MSG( parent, false, "can't create wxWindow without parent" );
 
     CreateBase(parent, id, pos, size, style, wxDefaultValidator, name);