From: Fridrich S. <str...@us...> - 2010-06-11 10:26:33
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv19490/src/lib Modified Files: WPGSVGGenerator.cpp Log Message: escape text when writing to svg Index: WPGSVGGenerator.cpp =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPGSVGGenerator.cpp,v retrieving revision 1.40 retrieving revision 1.41 diff -u -d -r1.40 -r1.41 --- WPGSVGGenerator.cpp 10 Jun 2010 20:47:39 -0000 1.40 +++ WPGSVGGenerator.cpp 11 Jun 2010 10:26:24 -0000 1.41 @@ -292,7 +292,8 @@ void libwpg::WPGSVGGenerator::insertText(const ::WPXString &str) { - m_outputSink << str.cstr() << "\n"; + WPXString tempUTF8(str, true); + m_outputSink << tempUTF8.cstr() << "\n"; } // create "style" attribute based on current pen and brush |