[Okular-devel] Re: Question about XPS code

Pino Toscano pino at kde.org
Sun May 8 19:34:17 CEST 2011


Hi,

Alle domenica 8 maggio 2011, Albert Astals Cid ha scritto:
> i just saw we have this code
> 
> case 'q': // Quadratic bezier curve
>     while (token.type == abtNumber)
>     {
>         QPointF point1 = getPointFromString(&token, isRelative, 
> currPos);
>         QPointF point2 = getPointFromString(&token, isRelative,
> currPos);
>         path.quadTo(point2, point2);
>     }
>     break;
> 
> Brad/Jiri should the first point2 be point1?

According to the specs:
- point1 is the control point
- point2 is the end point
so, according to the QPainterPath API, it should be
  path.quadTo(point1, point2);
as you suggests.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20110508/1100278c/attachment.sig 


More information about the Okular-devel mailing list