]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxSVGFileDC::write() to output UTF-8 even in ANSI build
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 11 May 2007 20:00:52 +0000 (20:00 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 11 May 2007 20:00:52 +0000 (20:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcsvg.cpp

index 92f539abaf2cc48918ac36f47106fc293987281a..4810844b5348be1d9502a803ae1bcb0da07df9cd 100644 (file)
@@ -666,7 +666,7 @@ void wxSVGFileDC::DoDrawBitmap(const class wxBitmap & bmp, wxCoord x, wxCoord y
 
 void wxSVGFileDC::write(const wxString &s)
 {
-    const wxWX2MBbuf buf = s.mb_str(wxConvUTF8);
+    const wxCharBuffer buf = s.utf8_str();
     m_outfile->Write(buf, strlen((const char *)buf));
     m_OK = m_outfile->Ok();
 }