Commit 5bce42cc authored by Joanmarie Diggs's avatar Joanmarie Diggs
Browse files

Don't treat unknown coordinates as definitely off-screen

Apparently (-1, -1, -1, -1) is being used to specify an undetermined
bounding box. Therefore do not automatically treat an object with
these coordinates as off-screen. This will hopefully solve the flat
review failure seen with apps written in Gtk+ 3.24.24.
parent 2c2c0df2
......@@ -1968,7 +1968,7 @@ class Utilities:
debug.println(debug.LEVEL_INFO, msg, True)
return False
if box.x < 0 and box.y < 0:
if box.x < 0 and box.y < 0 and tuple(box) != (-1, -1, -1, -1):
msg = "INFO: %s has negative coordinates" % obj
debug.println(debug.LEVEL_INFO, msg, True)
return False
......@@ -1988,7 +1988,7 @@ class Utilities:
if boundingbox is None or not self._boundsIncludeChildren(obj.parent):
return True
if not self.containsRegion(box, boundingbox):
if not self.containsRegion(box, boundingbox) and tuple(box) != (-1, -1, -1, -1):
msg = "INFO: %s %s not in %s" % (obj, box, boundingbox)
debug.println(debug.LEVEL_INFO, msg, True)
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment