]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - pdftops/PSOutputDev.cxx
Mirror 1.1.x changes.
[thirdparty/cups.git] / pdftops / PSOutputDev.cxx
index 64748e463bdcd8fd0291a3b5ee57d32ef1082240..423a5b5c52bb23d9e215586d6a4cee330f213575 100644 (file)
@@ -1933,8 +1933,8 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
     x2 = (int)(state->getX2() + 0.5);
     y2 = (int)(state->getY2() + 0.5);
     writePSFmt("%%%%PageBoundingBox: %d %d %d %d\n",
-              (int)floor(x1), (int)floor(y1),
-              (int)ceil(x2), (int)ceil(y2));
+              (int)floor((float)x1), (int)floor((float)y1),
+              (int)ceil((float)x2), (int)ceil((float)y2));
     writePS("%%BeginPageSetup\n");
     width = x2 - x1;
     height = y2 - y1;