fixed assertion failures with invalid icons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
9c3cc136fc
commit
3deeefebd7
@ -3294,8 +3294,11 @@ void wxWin32Renderer::DrawFrameIcon(wxDC& dc,
|
||||
const wxIcon& icon,
|
||||
int flags)
|
||||
{
|
||||
wxRect r = GetFrameClientArea(rect, flags & ~wxTOPLEVEL_TITLEBAR);
|
||||
dc.DrawIcon(icon, r.x, r.y);
|
||||
if ( icon.Ok() )
|
||||
{
|
||||
wxRect r = GetFrameClientArea(rect, flags & ~wxTOPLEVEL_TITLEBAR);
|
||||
dc.DrawIcon(icon, r.x, r.y);
|
||||
}
|
||||
}
|
||||
|
||||
void wxWin32Renderer::DrawFrameButton(wxDC& dc,
|
||||
|
Loading…
Reference in New Issue
Block a user