Properly initialize newly created wxGraphicsContext with window background color

This commit is contained in:
Stefan Csomor
2017-06-26 08:40:09 +02:00
parent c9c74d957c
commit 526889dc57

View File

@@ -1788,6 +1788,7 @@ void MyCanvas::Draw(wxDC& pdc)
return;
}
gdc.SetBackground(wxBrush(GetBackgroundColour(),wxBRUSHSTYLE_SOLID));
gdc.SetGraphicsContext(context);
}