Initialize m_originalBitmap when loading PNG data
Fixes https://gitlab.com/kicad/code/kicad/issues/13374
This commit is contained in:
parent
6271917682
commit
611fcc2f19
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue