Menu

#169 [wxPdfDocument] Bug in wxPdfDC::DrawPoint

Subversion_TRUNK
closed-fixed
wxpdfdoc (23)
5
2015-11-23
2015-11-04
No

The wxPdfDC::DrawPoint calls wxPdfDocument::Rect to draw a rectangle of 1 pixel width and height, but supplies it with a pair of x/y from-and-to coordinates, instead of x/y/width/height.

Fix below as a unified diff:

~~~~
Index: pdfdc29.inc
===================================================================
--- pdfdc29.inc (revision 3182)
+++ pdfdc29.inc (working copy)
@@ -577,7 +577,7 @@
double xx = ScaleLogicalToPdfX(x);
double yy = ScaleLogicalToPdfY(y);
m_pdfDocument->SetFillColour(m_pdfDocument->GetDrawColour());
- m_pdfDocument->Rect(xx-0.5, yy-0.5, xx+0.5, yy+0.5);
+ m_pdfDocument->Rect(xx-0.5, yy-0.5, 1.0, 1.0);
CalcBoundingBox(x, y);
}
~~~~

Discussion

  • Ulrich Telle

    Ulrich Telle - 2015-11-23
    • status: open --> closed-fixed
    • Group: CVS_HEAD --> Subversion_TRUNK
     
  • Ulrich Telle

    Ulrich Telle - 2015-11-23

    Fixed in wxCode SVN

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.