Fix compile error on Linux

(pointer to on-stack temporary).
This commit is contained in:
James Crook 2020-09-14 19:43:58 +01:00
parent 13c5fe476f
commit b0e931bdd4
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ ErrorDialog::ErrorDialog(
S.StartHorizontalLay();
{
// wxART_ERROR and wxART_INFORMATION are other possibilities.
S.AddIcon( &wxArtProvider::GetBitmap( wxART_WARNING));
// S.AddIcon( &wxArtProvider::GetBitmap( wxART_WARNING));
S.SetBorder( 20 );
wxBitmap bitmap = wxArtProvider::GetBitmap(wxART_WARNING);
auto icon = safenew wxStaticBitmap(S.GetParent(), -1, bitmap);
S.AddWindow( icon );
S.StartVerticalLay();
{
S.SetBorder(20);