r14146 by jghali - #8515: error in BleedAndPrintMarks script

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 12 20:26:01 CEST 2009


Revision: 14146
Author: jghali
Date: 2009-10-12T17:12:54.117958Z
Commit message: #8515: error in BleedAndPrintMarks script

Changeset: 
M  /trunk/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmddoc.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmddoc.cpp	(revision 14145)
+++ scribus/plugins/scriptplugin/cmddoc.cpp	(revision 14146)
@@ -216,7 +216,7 @@
 		return NULL;
 	if(!checkHaveDocument())
 		return NULL;
-	if ((e < 0) || (e > 3))
+	if ((e < UNITMIN) || (e > UNITMAX))
 	{
 		PyErr_SetString(PyExc_ValueError, QObject::tr("Unit out of range. Use one of the scribus.UNIT_* constants.","python error").toLocal8Bit().constData());
 		return NULL;




More information about the scribus-commit mailing list