merge wxmac change from the 350 branch
svn: r3366
This commit is contained in:
parent
2707426cdf
commit
a0e11bb2d2
|
@ -173,8 +173,7 @@ Bool wxSlider::Create(wxPanel *panel, wxFunction func, char *label, int value,
|
|||
{
|
||||
void *rc;
|
||||
rc = WRAP_SAFEREF(this);
|
||||
refcon = rc;
|
||||
SetControlReference(cMacControl, (long)refcon);
|
||||
SetControlReference(cMacControl, (long)rc);
|
||||
}
|
||||
|
||||
if (label) {
|
||||
|
@ -219,10 +218,10 @@ wxSlider::~wxSlider(void)
|
|||
{
|
||||
void *rc;
|
||||
|
||||
::DisposeControl(cMacControl);
|
||||
|
||||
rc = (void *)GetControlReference(cMacControl);
|
||||
FREE_SAFEREF(rc);
|
||||
|
||||
::DisposeControl(cMacControl);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user