same as r57054 in 2.8

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2008-12-16 21:46:21 +00:00
parent 053025ac94
commit ddabd45b61

View File

@@ -26,6 +26,7 @@
#include "wx/dcsvg.h" #include "wx/dcsvg.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/filename.h"
#define wxSVG_DEBUG FALSE #define wxSVG_DEBUG FALSE
// or TRUE to see the calls being executed // or TRUE to see the calls being executed
@@ -657,6 +658,10 @@ void wxSVGFileDCImpl::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoor
//save it //save it
bool bPNG_OK = myBitmap.SaveFile(sPNG,wxBITMAP_TYPE_PNG); bool bPNG_OK = myBitmap.SaveFile(sPNG,wxBITMAP_TYPE_PNG);
// reference the bitmap from the SVG doc
// only use filename & ext
sPNG = sPNG.AfterLast(wxFileName::GetPathSeparator());
// refrence the bitmap from the SVG doc // refrence the bitmap from the SVG doc
int w = myBitmap.GetWidth(); int w = myBitmap.GetWidth();
int h = myBitmap.GetHeight(); int h = myBitmap.GetHeight();