r16400 by jghali - #9776 : duplicated styles due to special character in style name

scribus-commit scribus-commit at lists.scribus.net
Sat Feb 26 00:06:23 CET 2011


Author: jghali
Date: Fri Feb 25 23:06:23 2011
New Revision: 16400

URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=16400
Log:
#9776 : duplicated styles due to special character in style name

Modified:
    branches/Version135/Scribus/scribus/desaxe/saxXML.cpp

Modified: branches/Version135/Scribus/scribus/desaxe/saxXML.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=16400&path=/branches/Version135/Scribus/scribus/desaxe/saxXML.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/desaxe/saxXML.cpp (original)
+++ branches/Version135/Scribus/scribus/desaxe/saxXML.cpp Fri Feb 25 23:06:23 2011
@@ -80,8 +80,8 @@
 		else
 		{
 			QString txt(Xml_data(it));
+			txt.replace("&", "&");
 			txt.replace("\"", """);
-			txt.replace("&", "&");
 			txt.replace("<", "&lt;");
 			txt.replace(">", "&gt;"); 
 			m_stream << " " << fromXMLString(Xml_key(it)) << "=\"" << fromXMLString(txt) << "\"";




More information about the scribus-commit mailing list