Initialize m_originalBitmap when loading PNG data

Fixes https://gitlab.com/kicad/code/kicad/issues/13374
This commit is contained in:
Seth Hillbrand 2023-01-04 10:51:48 -08:00
parent 6271917682
commit 611fcc2f19
1 changed files with 1 additions and 0 deletions

View File

@ -225,6 +225,7 @@ bool BITMAP_BASE::LoadData( LINE_READER& aLine, wxString& aErrorMsg )
wxMemoryInputStream istream( stream ); wxMemoryInputStream istream( stream );
m_image->LoadFile( istream, wxBITMAP_TYPE_PNG ); m_image->LoadFile( istream, wxBITMAP_TYPE_PNG );
m_bitmap = new wxBitmap( *m_image ); m_bitmap = new wxBitmap( *m_image );
m_originalImage = new wxImage( *m_image );
break; break;
} }