PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

PdfRectangel.ToString()
https://forum.pdfsharp.net/viewtopic.php?f=3&t=329
Page 1 of 1

Author:  BillE [ Sun Mar 02, 2008 3:19 pm ]
Post subject:  PdfRectangel.ToString()

Found a typo bug in the ToString logic.

Fix:

public override string ToString()
{
return PdfEncoders.Format("[{0:0.###} {1:0.###} {2:0.###} {3:0.###}]", this.x1, this.y1, this.x2, this.y2);
}

Set each format specifier to use the correct data offset the bug is the all are choosing offset zero

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/