Should not delete colours that come from the wxColourDatabase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -348,7 +348,6 @@ void wxGenericFontDialog::OnChangeFont(wxCommandEvent& WXUNUSED(event))
|
|||||||
{
|
{
|
||||||
m_fontData.fontColour = *col;
|
m_fontData.fontColour = *col;
|
||||||
m_previewer->SetForegroundColour(*col);
|
m_previewer->SetForegroundColour(*col);
|
||||||
delete col;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_previewer->Refresh();
|
m_previewer->Refresh();
|
||||||
|
Reference in New Issue
Block a user