Bugfix: vym cannot load maps saved with Qt 4.4
authorinsilmaril
Sun, 08 Jun 2008 19:26:07 +0000
changeset 711d6376f767d27
parent 710 e2c23e0cefc0
child 712 9b1806ab9199
Bugfix: vym cannot load maps saved with Qt 4.4
noteobj.cpp
     1.1 --- a/noteobj.cpp	Tue Jun 03 08:34:56 2008 +0000
     1.2 +++ b/noteobj.cpp	Sun Jun 08 19:26:07 2008 +0000
     1.3 @@ -170,6 +170,7 @@
     1.4  	// Remove the doctype, which will confuse parsing 
     1.5  	// with XmlReader in Qt >= 4.4
     1.6  	QRegExp rx("<!DOCTYPE.*>");
     1.7 +	rx.setMinimal(true);
     1.8  	n.replace (rx,"");
     1.9  	
    1.10  	// QTextEdit may generate fontnames with unquoted &, like
    1.11 @@ -197,7 +198,6 @@
    1.12  			if (s.count("style=\"")>1)
    1.13  			{
    1.14  				rx.setPattern("style=\\s*\"(.*)\"\\s*style=\\s*\"(.*)\"");
    1.15 -				rx.setMinimal (true);
    1.16  				s.replace(rx,"style=\"\\1 \\2\"");
    1.17  				n.replace (begin_bracket,sl,s);
    1.18  				pos=pos-(sl-s.length());