Mathplot: properly set foreground color when saving screenshots

Fixes: lp:1810914
* https://bugs.launchpad.net/kicad/+bug/1810914
This commit is contained in:
Jon Evans 2019-06-05 22:43:41 -04:00
parent 607650be22
commit 27a5ed1a9f
1 changed files with 2 additions and 1 deletions

View File

@ -3053,7 +3053,8 @@ bool mpWindow::SaveScreenshot( const wxString& filename, wxBitmapType type,
wxBitmap screenBuffer( sizeX, sizeY ); wxBitmap screenBuffer( sizeX, sizeY );
wxMemoryDC screenDC; wxMemoryDC screenDC;
screenDC.SelectObject( screenBuffer ); screenDC.SelectObject( screenBuffer );
screenDC.SetPen( *wxTRANSPARENT_PEN ); screenDC.SetPen( *wxWHITE_PEN );
screenDC.SetTextForeground( m_fgColour );
wxBrush brush( GetBackgroundColour() ); wxBrush brush( GetBackgroundColour() );
screenDC.SetBrush( brush ); screenDC.SetBrush( brush );
screenDC.DrawRectangle( 0, 0, sizeX, sizeY ); screenDC.DrawRectangle( 0, 0, sizeX, sizeY );