From: Fridrich S. <str...@us...> - 2010-06-04 09:01:02
|
Update of /cvsroot/libwpg/libwpg/src/lib In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv26943/src/lib Modified Files: WPGSVGGenerator.cpp Log Message: Fix a badly formed xml in svg output Index: WPGSVGGenerator.cpp =================================================================== RCS file: /cvsroot/libwpg/libwpg/src/lib/WPGSVGGenerator.cpp,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- WPGSVGGenerator.cpp 7 Sep 2009 09:41:29 -0000 1.34 +++ WPGSVGGenerator.cpp 4 Jun 2010 09:00:53 -0000 1.35 @@ -93,22 +93,11 @@ m_outputSink << " <linearGradient id=\"grad" << m_gradientIndex++ << "\" >\n"; for(unsigned c = 0; c < m_gradient.count(); c++) { - // round to nearest percentage - // int ofs = (int)((100.0*m_gradient.stopOffset(c))+0.5); - m_outputSink << " <stop offset=\"" << m_gradient[c]["svg:offset"]->getStr().cstr() << "\""; m_outputSink << " stop-color=\"" << m_gradient[c]["svg:stop-color"]->getStr().cstr() << "\""; m_outputSink << " stop-opacity=\"" << m_gradient[c]["svg:stop-opacity"]->getStr().cstr() << "\" />" << std::endl; - m_outputSink << " <stop offset=\"" << m_gradient[c]["svg:offset"]->getStr().cstr() << "%\""; - // set stream to %02x formatting - unsigned long old_stream_size = m_outputSink.width(2); - m_outputSink << std::hex; - - // reset stream formatting - m_outputSink << std::dec; - m_outputSink.width(old_stream_size); } m_outputSink << " </linearGradient>\n"; |