From 27a5ed1a9f0f22eef3fa4418c0056f6a6cc0228f Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 5 Jun 2019 22:43:41 -0400 Subject: [PATCH] Mathplot: properly set foreground color when saving screenshots Fixes: lp:1810914 * https://bugs.launchpad.net/kicad/+bug/1810914 --- common/widgets/mathplot.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/widgets/mathplot.cpp b/common/widgets/mathplot.cpp index 643c329ca2..0070f4d13c 100644 --- a/common/widgets/mathplot.cpp +++ b/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 );