merge wxmac change from the 350 branch

svn: r3366
This commit is contained in:
Eli Barzilay 2006-06-15 03:11:31 +00:00
parent 2707426cdf
commit a0e11bb2d2

View File

@ -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);
}