[Scribus] python - bezierline

Sergio Cambra sergio
Mon Dec 20 22:20:46 CET 2004


I was looking at scribus code while translating it, and I think there is 
something wrong:
        if (len < 8)
        {
                PyErr_SetString(PyExc_ValueError, QObject::tr("Point list 
must contain at least four points (eight values)","python error"));
                return NULL;
        }
        if ((len % 6) != 0)
        {
                PyErr_SetString(PyExc_ValueError, QObject::tr("Point list 
must have a multiple of six values","python error"));
                return NULL;
        }

If len must be a multiple of 6, and must be >= 8, len must be >= 12

I don't remember how are bezier curves

Sergio




More information about the scribus mailing list