Line 0
Link Here
|
|
|
1 |
--- src/orca/script_utilities.py.orig 2020-12-03 16:37:05 UTC |
2 |
+++ src/orca/script_utilities.py |
3 |
@@ -1968,7 +1968,7 @@ class Utilities: |
4 |
debug.println(debug.LEVEL_INFO, msg, True) |
5 |
return False |
6 |
|
7 |
- if box.x < 0 and box.y < 0: |
8 |
+ if box.x < 0 and box.y < 0 and tuple(box) != (-1, -1, -1, -1): |
9 |
msg = "INFO: %s has negative coordinates" % obj |
10 |
debug.println(debug.LEVEL_INFO, msg, True) |
11 |
return False |
12 |
@@ -1988,7 +1988,7 @@ class Utilities: |
13 |
if boundingbox is None or not self._boundsIncludeChildren(obj.parent): |
14 |
return True |
15 |
|
16 |
- if not self.containsRegion(box, boundingbox): |
17 |
+ if not self.containsRegion(box, boundingbox) and tuple(box) != (-1, -1, -1, -1): |
18 |
msg = "INFO: %s %s not in %s" % (obj, box, boundingbox) |
19 |
debug.println(debug.LEVEL_INFO, msg, True) |
20 |
return False |