r23299 by jghali - #15884: Error "More keyword list entries than format specifiers"

scribus-commit scribus-commit at lists.scribus.net
Tue Oct 29 12:09:52 UTC 2019


Author: jghali
Date: Tue Oct 29 12:09:52 2019
New Revision: 23299

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=23299
Log:
#15884: Error "More keyword list entries than format specifiers"

Modified:
    trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=23299&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp	(original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp	Tue Oct 29 12:09:52 2019
@@ -206,11 +206,11 @@
 	double strikethruOffset = dbl_min, strikethruWidth = dbl_min;
 	double tracking = dbl_min;
 	
-	if (!PyArg_ParseTupleAndKeywords(args, keywords, "es|esdesesdesddddddddddddes", keywordargs,
+	if (!PyArg_ParseTupleAndKeywords(args, keywords, "es|esdesesdesddddddddddddeses", keywordargs,
 									"utf-8", &name, "utf-8", &font, &fontSize, "utf-8", &features,
 									"utf-8", &fillColor, &fillShade, "utf-8", &strokeColor, &strokeShade, &baselineOffset, &shadowXOffset,
 									&shadowYOffset, &outlineWidth, &underlineOffset, &underlineWidth, &strikethruOffset, &strikethruWidth,
-									&scaleH, &scaleV, &tracking, "utf-8", &language))
+									&scaleH, &scaleV, &tracking, "utf-8", &language, "utf-8", &fontFeatures))
 		return nullptr;
 	
 	if (strlen(name) == 0)




More information about the scribus-commit mailing list