r17459 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 19 20:53:53 UTC 2012


Author: jghali
Date: Thu Apr 19 20:53:53 2012
New Revision: 17459

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17459
Log:
#10686: html importer tries (and fails) to read embedded images

Modified:
    trunk/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp

Modified: trunk/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17459&path=/trunk/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp (original)
+++ trunk/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp Thu Apr 19 20:53:53 2012
@@ -218,7 +218,11 @@
 		{
 			if (attrs.localName(i) == "src")
 			{
-				imgline +=  " src: " + attrs.value(i);
+				QString attrValue = attrs.value(i);
+				if (attrValue.indexOf("data:image") < 0)
+					imgline +=  " src: " + attrValue;
+				else
+					imgline +=  " src: embedded image";
 			}
 			if (attrs.localName(i) == "alt")
 			{




More information about the scribus-commit mailing list