mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 15:49:41 +02:00
Fix compile error on Linux
(pointer to on-stack temporary).
This commit is contained in:
parent
13c5fe476f
commit
b0e931bdd4
@ -64,7 +64,11 @@ ErrorDialog::ErrorDialog(
|
|||||||
S.StartHorizontalLay();
|
S.StartHorizontalLay();
|
||||||
{
|
{
|
||||||
// wxART_ERROR and wxART_INFORMATION are other possibilities.
|
// 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.StartVerticalLay();
|
||||||
{
|
{
|
||||||
S.SetBorder(20);
|
S.SetBorder(20);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user