X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0ee47ff76c278c053ac2ad36bb3129b0fcd050f..038072e2f1eaf2bf32d748a71234d767ebba8919:/src/motif/button.cpp?ds=sidebyside diff --git a/src/motif/button.cpp b/src/motif/button.cpp index 5aacdf44ae..645f99cf44 100644 --- a/src/motif/button.cpp +++ b/src/motif/button.cpp @@ -111,7 +111,7 @@ void wxButton::SetDefault() { wxWindow *parent = GetParent(); if ( parent ) - panel->SetDefaultItem(this); + parent->SetDefaultItem(this); // We initially do not set XmNdefaultShadowThickness, to have small buttons. // Unfortunately, buttons are now mis-aligned. We try to correct this