diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index a3d8b01b8..2569ae174 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -529,7 +529,7 @@ void Region::boolean_operation(int op, Region& dst, void Region::translate(Region& reg, int dx, int dy) { - if (!reg.isEmpty()) { + if ((dx || dy) && !reg.isEmpty()) { #if VALIDATE_REGIONS validate(reg, "translate (before)"); #endif