Skip to content

Commit aa7d474

Browse files
committed
Fix misaligned clipping rectangle.
svn path=/branches/transforms/; revision=4184
1 parent 1112b17 commit aa7d474

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/_backend_agg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ RendererAgg::set_clipbox(const Py::Object& cliprect, R rasterizer) {
282282

283283
double l, b, r, t;
284284
if (py_convert_bbox(cliprect.ptr(), l, b, r, t)) {
285-
rasterizer->clip_box((int)l, (int)b, (int)r, (int)t);
285+
rasterizer->clip_box((int)l + 1, (int)b + 1, (int)r + 1, (int)t + 1);
286286
}
287287

288288
_VERBOSE("RendererAgg::set_clipbox done");

0 commit comments

Comments
 (0)