fixed bug due to missing break in GetColourFromGTKWidget() (part of patch 1160117)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -91,7 +91,8 @@ static bool GetColourFromGTKWidget(int& red, int& green, int& blue,
|
||||
|
||||
case wxGTK_LIST:
|
||||
widget = gtk_list_new();
|
||||
|
||||
break;
|
||||
|
||||
case wxGTK_MENUITEM:
|
||||
widget = gtk_menu_item_new();
|
||||
}
|
||||
@@ -307,9 +308,9 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index )
|
||||
case wxSYS_COLOUR_MAX:
|
||||
default:
|
||||
wxFAIL_MSG( _T("unknown system colour index") );
|
||||
}
|
||||
}
|
||||
|
||||
return *wxWHITE;
|
||||
return *wxWHITE;
|
||||
}
|
||||
|
||||
wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
||||
|
@@ -91,7 +91,8 @@ static bool GetColourFromGTKWidget(int& red, int& green, int& blue,
|
||||
|
||||
case wxGTK_LIST:
|
||||
widget = gtk_list_new();
|
||||
|
||||
break;
|
||||
|
||||
case wxGTK_MENUITEM:
|
||||
widget = gtk_menu_item_new();
|
||||
}
|
||||
@@ -307,9 +308,9 @@ wxColour wxSystemSettingsNative::GetColour( wxSystemColour index )
|
||||
case wxSYS_COLOUR_MAX:
|
||||
default:
|
||||
wxFAIL_MSG( _T("unknown system colour index") );
|
||||
}
|
||||
}
|
||||
|
||||
return *wxWHITE;
|
||||
return *wxWHITE;
|
||||
}
|
||||
|
||||
wxFont wxSystemSettingsNative::GetFont( wxSystemFont index )
|
||||
|
Reference in New Issue
Block a user