r17218 by jghali - #10535: giving second argument to textOverflows() crashes scribus
scribus-commit
scribus-commit at lists.scribus.net
Sat Jan 21 16:08:49 UTC 2012
Author: jghali
Date: Sat Jan 21 16:08:49 2012
New Revision: 17218
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17218
Log:
#10535: giving second argument to textOverflows() crashes scribus
Modified:
branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
Modified: branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17218&path=/branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp (original)
+++ branches/Version14x/Scribus/scribus/plugins/scriptplugin/cmdtext.cpp Sat Jan 21 16:08:49 2012
@@ -937,8 +937,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