X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fbezier.h;h=7b46d14b0e8f3e62ae79688cbdd8490538016b4d;hp=d3c0e2d22d74782e3a35d3da36bda170f072fd06;hb=6c0dfe752994312ee58d307b383948bfeb2d6e2e;hpb=667281b828c8515e995c0000706157cee180fa08 diff --git a/src/bezier.h b/src/bezier.h index d3c0e2d..7b46d14 100644 --- a/src/bezier.h +++ b/src/bezier.h @@ -151,7 +151,7 @@ namespace IPDF // (So can't just use the Copy constructor on the inverse of bounds) // BRect inverse = {-bounds.x/bounds.w, -bounds.y/bounds.h, BReal(1)/bounds.w, BReal(1)/bounds.h}; Bezier result; - if (bounds.w == 0) + if (bounds.w == BReal(0)) { result.x0 = 0; result.x1 = 0; @@ -166,7 +166,7 @@ namespace IPDF result.x3 = (x3 - bounds.x)/bounds.w; } - if (bounds.h == 0) + if (bounds.h == BReal(0)) { result.y0 = 0; result.y1 = 0;