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:
@@ -26,6 +26,7 @@
|
||||
|
||||
#include "wx/dcsvg.h"
|
||||
#include "wx/wfstream.h"
|
||||
#include "wx/filename.h"
|
||||
|
||||
#define wxSVG_DEBUG FALSE
|
||||
// or TRUE to see the calls being executed
|
||||
@@ -657,6 +658,10 @@ void wxSVGFileDCImpl::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoor
|
||||
//save it
|
||||
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
|
||||
int w = myBitmap.GetWidth();
|
||||
int h = myBitmap.GetHeight();
|
||||
|
Reference in New Issue
Block a user