]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/button.cpp
Added first cut at XRC docs; added font spec for wxWindows manual (new Tex2RTF feature!);
[wxWidgets.git] / src / motif / button.cpp
index 5aacdf44aebeea0649cec489bc61ea5368d99942..645f99cf44330589c2fa0f89e238593ff4fcd07f 100644 (file)
@@ -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