Skip to content

Commit d51382d

Browse files
committed
Fix intersection check for destination rectangle in XYImageFilterItem
1 parent 4d9ac32 commit d51382d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plotpy/items/image/filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def draw_image(
313313
j0, j1 = int(yMap.transform(y0)), int(yMap.transform(y1))
314314

315315
dstRect = QC.QRect(i0, j0, i1 - i0, j1 - j0)
316-
if not dstRect.intersects(canvasRect):
316+
if not dstRect.intersects(canvasRect.toAlignedRect()):
317317
return
318318

319319
x, y, data = self.image.get_data(x0, y0, x1, y1)

0 commit comments

Comments
 (0)