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:
Julian Smart
2000-01-25 13:35:44 +00:00
parent 8ad6ad991c
commit eaeb6a3c37
3 changed files with 145 additions and 9 deletions

View File

@@ -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();