diff --git a/src/common/dcgraph.cpp b/src/common/dcgraph.cpp index 8fb3b5a73d..dc6d018fb2 100644 --- a/src/common/dcgraph.cpp +++ b/src/common/dcgraph.cpp @@ -1284,6 +1284,9 @@ void wxGCDCImpl::Clear(void) { wxCHECK_RET( IsOk(), wxT("wxGCDC(cg)::Clear - invalid DC") ); + if ( m_backgroundBrush.IsTransparent() ) + return; + if ( m_backgroundBrush.IsOk() ) { m_graphicContext->SetBrush( m_backgroundBrush );