Skip to content

Commit

Permalink
Merge pull request #648 from frmdstryr/pdf-arc-tolerance
Browse files Browse the repository at this point in the history
Add tolerance to pdf_arc_segment assertion
  • Loading branch information
carrotIndustries authored Jan 7, 2022
2 parents 31fbd6f + f1cf2f7 commit ff47cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/export_pdf/canvas_pdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ static Coordd pdf_arc_segment(PoDoFo::PdfPainter &painter, const Coordd c, const
{
const auto da = a0 - a1;
assert(da != 0);
assert(std::abs(da) <= M_PI / 2);
assert(std::abs(da) <= M_PI / 2 + 1e-6);

// Shift to bisect at x axis
const auto theta = (a0 + a1) / 2;
Expand Down

0 comments on commit ff47cbb

Please sign in to comment.