Use wxWindowDC instead of wxClientDC as function parameters since we cannot assume that wxPaintDC inherits from wxClientDC
This commit is contained in:
parent
c3a7b4d126
commit
8863c003e4
|
@ -141,7 +141,7 @@ void WinEDA_MsgPanel::Affiche_1_Parametre( int pos_X, const wxString& texte_H,
|
|||
}
|
||||
|
||||
|
||||
void WinEDA_MsgPanel::showItem( wxClientDC& dc, const MsgItem& aItem )
|
||||
void WinEDA_MsgPanel::showItem( wxWindowDC& dc, const MsgItem& aItem )
|
||||
{
|
||||
int color = aItem.m_Color;
|
||||
|
||||
|
|
|
@ -1409,7 +1409,7 @@ class WinEDA_MsgPanel : public wxPanel
|
|||
protected:
|
||||
std::vector<MsgItem> m_Items;
|
||||
|
||||
void showItem( wxClientDC& dc, const MsgItem& aItem );
|
||||
void showItem( wxWindowDC& dc, const MsgItem& aItem );
|
||||
|
||||
public:
|
||||
WinEDA_DrawFrame* m_Parent;
|
||||
|
|
Loading…
Reference in New Issue