X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fobjectrenderer.h;h=6f29add264b9572930b9a7b1975882c4c380b553;hp=4ebb66a2186e9d0669c410893da8c7febebec42c;hb=33356addacfe4296ecb613c6c4696f082e351159;hpb=54798ed9050d0742c6cdab067fad0cc364b1d6b2 diff --git a/src/objectrenderer.h b/src/objectrenderer.h index 4ebb66a..6f29add 100644 --- a/src/objectrenderer.h +++ b/src/objectrenderer.h @@ -50,7 +50,7 @@ namespace IPDF struct PixelBounds { int64_t x; int64_t y; int64_t w; int64_t h; - PixelBounds(const Rect & bounds) : x(bounds.x), y(bounds.y), w(bounds.w), h(bounds.h) {} + PixelBounds(const Rect & bounds) : x(Double(bounds.x)), y(Double(bounds.y)), w(Double(bounds.w)), h(Double(bounds.h)) {} }; static Rect CPURenderBounds(const Rect & bounds, const View & view, const CPURenderTarget & target);