Skip to content

Commit

Permalink
global commands moveMouseToNavigatorObject script: if trying to fetch…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
michaelDCurran committed Jan 3, 2011
1 parent f614c68 commit 17d7388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/globalCommands.py
Expand Up @@ -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
Expand Down

0 comments on commit 17d7388

Please sign in to comment.