From 17d7388cd08a8f8ec1b7d5b8200ede7896395b61 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Tue, 4 Jan 2011 09:57:50 +1000 Subject: [PATCH] global commands moveMouseToNavigatorObject script: if trying to fetch the point at the start of the current review position causes a LookupError (the TextInfo is currently not specifically on a valid point... e.g. no actual text in the displayModel if its a DisplayModel textInfo), fall back to using the navigator object's location, just as it would if there was a NotImplementedError. Fixes #1270 --- source/globalCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/globalCommands.py b/source/globalCommands.py index 0b3c34122c0..cf0d76fd22d 100755 --- a/source/globalCommands.py +++ b/source/globalCommands.py @@ -202,7 +202,7 @@ def script_moveMouseToNavigatorObject(self,gesture): obj=api.getNavigatorObject() try: p=api.getReviewPosition().pointAtStart - except NotImplementedError: + except (NotImplementedError, LookupError): p=None if p: x=p.x