r17219 by jghali - #10535: giving second argument to textOverflows() crashes scribus

scribus-commit scribus-commit at lists.scribus.net
Sat Jan 21 16:09:22 UTC 2012


Author: jghali
Date: Sat Jan 21 16:09:22 2012
New Revision: 17219

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17219
Log:
#10535: giving second argument to textOverflows() crashes scribus

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

Modified: trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17219&path=/trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp Sat Jan 21 16:09:22 2012
@@ -963,8 +963,8 @@
 
 PyObject *scribus_istextoverflowing(PyObject * self, PyObject* args, PyObject* kw)
 {
+	int nolinks = 0;
 	char *name = const_cast<char*>("");
-	bool nolinks = false;
 	char *kwargs[] = {const_cast<char*>("name"), const_cast<char*>("nolinks"), NULL};
 	if (!PyArg_ParseTupleAndKeywords(args, kw, "|esi", kwargs, "utf-8", &name, &nolinks))
 		return NULL;




More information about the scribus-commit mailing list