r16796 by jghali - #10208 : scripter's createParagraphStyle() linespacing parameter don't accept floats

scribus-commit scribus-commit at lists.scribus.net
Tue Aug 23 20:47:27 UTC 2011


Author: jghali
Date: Tue Aug 23 20:47:27 2011
New Revision: 16796

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16796
Log:
#10208 : scripter's createParagraphStyle() linespacing parameter don't accept floats

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=16796&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdstyle.cpp Tue Aug 23 20:47:27 2011
@@ -38,8 +38,10 @@
 			const_cast<char*>("charstyle"),
 			NULL};
 	char *Name = const_cast<char*>(""), *CharStyle = const_cast<char*>("");
-	int LineSpacingMode = 0, LineSpacing = 15, Alignment = 0, LeftMargin = 0, RightMargin = 0, GapBefore = 0, GapAfter = 0, FirstIndent = 0, DropCapLines = 2, DropCapOffset = 0, HasDropCap = 0;
-	if (!PyArg_ParseTupleAndKeywords(args, keywords, "es|iiiiiiiiiiies",
+	int LineSpacingMode = 0, Alignment = 0, DropCapLines = 2, HasDropCap = 0;
+	double LineSpacing = 15.0, LeftMargin = 0.0, RightMargin = 0.0;
+	double GapBefore = 0.0, GapAfter = 0.0, FirstIndent = 0.0, DropCapOffset = 0;
+	if (!PyArg_ParseTupleAndKeywords(args, keywords, "es|ididddddiides",
 		 keywordargs, "utf-8", &Name, &LineSpacingMode, &LineSpacing, &Alignment,
 		&LeftMargin, &RightMargin, &GapBefore, &GapAfter, &FirstIndent,
 		&HasDropCap, &DropCapLines, &DropCapOffset, "utf-8", &CharStyle))




More information about the scribus-commit mailing list