]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dcsvg.cpp
mac cgcolor changes
[wxWidgets.git] / src / common / dcsvg.cpp
index 063b017bfc08dd231ba64f88716d133584ee7128..924bef64401ef5fae17d2a52ddfb5cc2af09dca8 100644 (file)
@@ -649,7 +649,8 @@ void wxSVGFileImplDC::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoor
     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);