From 003748f938af580b2026c84f193fb994ee7fe0c0 Mon Sep 17 00:00:00 2001 From: Chris Elliott Date: Mon, 1 Dec 2008 10:41:46 +0000 Subject: [PATCH] make safari 3 on windows read SVG file containing png images git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@57054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/svg/dcsvg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/src/svg/dcsvg.cpp b/contrib/src/svg/dcsvg.cpp index 66b3b8302a..89d6846af2 100644 --- a/contrib/src/svg/dcsvg.cpp +++ b/contrib/src/svg/dcsvg.cpp @@ -22,6 +22,7 @@ #include "wx/svg/dcsvg.h" #include "wx/image.h" +#include "wx/filename.h" #define wxSVG_DEBUG FALSE // or TRUE to see the calls being executed @@ -768,7 +769,10 @@ void wxSVGFileDC::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoord y //save it bool bPNG_OK = myBitmap.SaveFile(sPNG,wxBITMAP_TYPE_PNG); -// refrence the bitmap from the SVG doc +// reference the bitmap from the SVG doc +// only use filename & ext + sPNG = sPNG.AfterLast(wxFileName::GetPathSeparator()); + int w = myBitmap.GetWidth(); int h = myBitmap.GetHeight(); sTmp.Printf ( wxT("