Programming questions

Casper Boemann cbr at boemann.dk
Sun Jul 10 14:30:59 CEST 2005


On Sunday 10 July 2005 14:17, Michael Thaler wrote:

> void KisCubismFilter::fillPolyColor (KisPaintDeviceSP src, KisPaintDeviceSP
> dst, KisPolygon* poly, Q_UINT8* col, Q_UINT8* dest)
> {
> ..
> Q_INT32 sx = poly[0].x();
> ...
> }
poly[0] gives you the KisPolygon (remember poly was a pointer)

so you should write 
Q_INT32 sx = (*poly)[0].x();


-- 
best regards / venlig hilsen
Casper Boemann


More information about the kimageshop mailing list