[open-beos-printing] PDFWriter bug fix
- From: Michael Pfeiffer <michael.pfeiffer@xxxxxxxxx>
- To: open-beos-printing@xxxxxxxxxxxxx
- Date: Tue, 25 Dec 2001 19:38:39 +0100
Hi all,
I have now tracked down the problem with rounded rectangles,
if somebody would make the changes to cvs, because I can not do
it during the holidays.
The method IterateLineTo has to be replaced by this one:
status_t
DrawShape::IterateLineTo(int32 lineCount, BPoint *linePoints)
{
fprintf(Log(), "IterateLineTo %d\n", (int)lineCount);
BPoint *p = linePoints;
for (int32 i = 0; i < lineCount; i++) {
fprintf(Log(), "(%f, %f) ", p->x, p->y);
PDF_lineto(Pdf(), tx(p->x), ty(p->y)); p++;
}
return B_OK;
}
The old version of this method interpreted the linePoints as
pairs of points.
Philippe, if you want please make a release.
Thanks,
Michael
Other related posts: