diff --git a/src/orca/where_am_I.py b/src/orca/where_am_I.py
index 28f5aae..819b333 100644
--- a/src/orca/where_am_I.py
+++ b/src/orca/where_am_I.py
@@ -86,11 +86,11 @@ class WhereAmI:
                                             [pyatspi.ROLE_TABLE_CELL,
                                              pyatspi.ROLE_LIST_ITEM],
                                             [pyatspi.ROLE_FRAME])
-        if ancestor and not self._script.isLayoutOnly(ancestor.parent):
+        if ancestor and not self._script.isLayoutOnly(ancestor.parent) \
+           and obj.getRole() != pyatspi.ROLE_ENTRY:
             if ancestor.getRole() == pyatspi.ROLE_TABLE_CELL:
-                if obj.getRole() != pyatspi.ROLE_ENTRY:
-                    speech.speak(self.getWhereAmI(ancestor, basicOnly))
-                    return
+                speech.speak(self.getWhereAmI(ancestor, basicOnly))
+                return
             else:
                 speech.speak(self.getWhereAmI(ancestor, basicOnly))
                 return
