Added DEVNAMES to wxPrintDialog to remember printer name; fixed wxDC::Clear
to not assert for printer DCs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -261,7 +261,11 @@ void wxDC::Clear()
|
||||
}
|
||||
else
|
||||
{
|
||||
wxCHECK_RET( m_selectedBitmap.Ok(), wxT("this DC can't be cleared") );
|
||||
// No, I think we should simply ignore this if printing on e.g.
|
||||
// a printer DC.
|
||||
// wxCHECK_RET( m_selectedBitmap.Ok(), wxT("this DC can't be cleared") );
|
||||
if (!m_selectedBitmap.Ok())
|
||||
return;
|
||||
|
||||
rect.left = 0; rect.top = 0;
|
||||
rect.right = m_selectedBitmap.GetWidth();
|
||||
|
||||
Reference in New Issue
Block a user