File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class Rect {
141
141
template <class T >
142
142
Rect <T> bounding_box (const Rect <T>& lhs, const Rect <T>& rhs);
143
143
144
- // Return the intersection (union) of two given rectangles
144
+ // Return the intersection of two given rectangles
145
145
template <class T >
146
146
Rect <T> intersection (const Rect <T>& lhs, const Rect <T>& rhs);
147
147
Original file line number Diff line number Diff line change @@ -73,21 +73,7 @@ Region Region::regions_intersection(Region region) {
73
73
}
74
74
75
75
bool Region::locked () {
76
- bool locked = false ;
77
-
78
- if (region_bounds.xmin () != region_bounds.xmax ()) {
79
- return locked;
80
- }
81
-
82
- if (region_bounds.ymin () != region_bounds.ymax ()) {
83
- return locked;
84
- }
85
-
86
- if (sub_tile == NO_SUBTILE) {
87
- return locked;
88
- }
89
-
90
- return locked = true ;
76
+ return region_bounds.xmin () == region_bounds.xmax () && region_bounds.ymin () == region_bounds.ymax () && sub_tile != NO_SUBTILE;
91
77
}
92
78
93
79
bool Region::empty () {
You can’t perform that action at this time.
0 commit comments