Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2586 → Rev 2587

/trunk/Scribus/scribus/plugins/scriptplugin/objimageexport.cpp
33,7 → 33,7
ImageExport *self;
self = (ImageExport *)type->tp_alloc(type, 0);
if (self != NULL) {
self->name = PyString_FromString("");
self->name = PyString_FromString("ImageExport.png");
self->type = PyString_FromString("PNG");
self->allTypes = PyList_New(0);
self->dpi = 72;
67,6 → 67,11
PyErr_SetString(PyExc_TypeError, QObject::tr("The filename must be a string.", "python error"));
return -1;
}
if (PyString_Size(value) < 1)
{
PyErr_SetString(PyExc_TypeError, "The filename should not be empty string.");
return -1;
}
Py_DECREF(self->name);
Py_INCREF(value);
self->name = value;