r17458 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Thu Apr 19 20:53:08 UTC 2012
Author: jghali
Date: Thu Apr 19 20:53:08 2012
New Revision: 17458
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17458
Log:
#10686: html importer tries (and fails) to read embedded images
Modified:
branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
Modified: branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17458&path=/branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/gettext/htmlim/htmlreader.cpp Thu Apr 19 20:53:08 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