r14145 by jghali - #8515: error in BleedAndPrintMarks script

scribus-commit scribus-commit at lists.scribus.net
Mon Oct 12 20:25:43 CEST 2009


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

Changeset: 
M  /branches/Version135/Scribus/scribus/plugins/scriptplugin/cmddoc.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmddoc.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmddoc.cpp	(revision 14144)
+++ scribus/plugins/scriptplugin/cmddoc.cpp	(revision 14145)
@@ -215,7 +215,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