git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50152
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if (m_graphics_changed) NewGraphics ();
wxString sTmp, s, sPNG ;
if (m_graphics_changed) NewGraphics ();
wxString sTmp, s, sPNG ;
- wxImage::AddHandler(new wxPNGHandler);
+ if ( wxImage::FindHandler(wxBITMAP_TYPE_PNG) == NULL )
+ wxImage::AddHandler(new wxPNGHandler);
// create suitable file name
sTmp.Printf ( wxT("_image%d.png"), m_sub_images);
// create suitable file name
sTmp.Printf ( wxT("_image%d.png"), m_sub_images);