r20203 by fschmid - Fixed Bug #13165: SVG Stroke-dasharray zero problem

scribus-commit scribus-commit at lists.scribus.net
Wed Jun 24 10:48:59 UTC 2015


Author: fschmid
Date: Wed Jun 24 10:48:59 2015
New Revision: 20203

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20203
Log:
Fixed Bug #13165: SVG Stroke-dasharray zero problem

Modified:
    trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp

Modified: trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20203&path=/trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/svg/svgplugin.cpp Wed Jun 24 10:48:59 2015
@@ -2611,8 +2611,11 @@
 		{
 			QString params2 = params.simplified().replace(',', " ");
 			QStringList dashes = params2.split(' ', QString::SkipEmptyParts);
-			for( QStringList::Iterator it = dashes.begin(); it != dashes.end(); ++it )
-				array.append( parseUnit(*it) );
+			if ((dashes.count() > 0) && (parseUnit(dashes[0]) != 0.0))
+			{
+				for( QStringList::Iterator it = dashes.begin(); it != dashes.end(); ++it )
+					array.append( parseUnit(*it) );
+			}
 		}
 		obj->dashArray = array;
 	}




More information about the scribus-commit mailing list