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:
@@ -3294,8 +3294,11 @@ void wxWin32Renderer::DrawFrameIcon(wxDC& dc,
|
|||||||
const wxIcon& icon,
|
const wxIcon& icon,
|
||||||
int flags)
|
int flags)
|
||||||
{
|
{
|
||||||
|
if ( icon.Ok() )
|
||||||
|
{
|
||||||
wxRect r = GetFrameClientArea(rect, flags & ~wxTOPLEVEL_TITLEBAR);
|
wxRect r = GetFrameClientArea(rect, flags & ~wxTOPLEVEL_TITLEBAR);
|
||||||
dc.DrawIcon(icon, r.x, r.y);
|
dc.DrawIcon(icon, r.x, r.y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxWin32Renderer::DrawFrameButton(wxDC& dc,
|
void wxWin32Renderer::DrawFrameButton(wxDC& dc,
|
||||||
|
Reference in New Issue
Block a user