corrected scoping

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2002-06-24 15:26:06 +00:00
parent 6cd4655bee
commit f03c50fa3b
2 changed files with 20 additions and 16 deletions

View File

@@ -68,6 +68,7 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
switch( iMessage ) switch( iMessage )
{ {
case kControlMsgSetUpBackground : case kControlMsgSetUpBackground :
{
wxControl* wx = (wxControl*) GetControlReference( iControl ) ; wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) ) if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
{ {
@@ -78,6 +79,7 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
{ {
status = paramErr ; status = paramErr ;
} }
}
break ; break ;
default : default :
status = paramErr ; status = paramErr ;

View File

@@ -68,6 +68,7 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
switch( iMessage ) switch( iMessage )
{ {
case kControlMsgSetUpBackground : case kControlMsgSetUpBackground :
{
wxControl* wx = (wxControl*) GetControlReference( iControl ) ; wxControl* wx = (wxControl*) GetControlReference( iControl ) ;
if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) ) if ( wx != NULL && wx->IsKindOf( CLASSINFO( wxControl ) ) )
{ {
@@ -78,6 +79,7 @@ pascal OSStatus wxMacSetupControlBackground( ControlRef iControl , SInt16 iMessa
{ {
status = paramErr ; status = paramErr ;
} }
}
break ; break ;
default : default :
status = paramErr ; status = paramErr ;