Browse Source

Mathplot: properly set foreground color when saving screenshots

Fixes: lp:1810914
* https://bugs.launchpad.net/kicad/+bug/1810914

(cherry picked from commit 27a5ed1a9f)
pull/14/head
Jon Evans 7 years ago
parent
commit
02947345e8
  1. 3
      common/widgets/mathplot.cpp

3
common/widgets/mathplot.cpp

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

Loading…
Cancel
Save