9335: Gramps has experienced an unexpected error
This commit is contained in:
parent
cfeb97a524
commit
8a283ff376
@ -597,6 +597,8 @@ class GuiGramplet(object):
|
||||
int(event.x),
|
||||
int(event.y))
|
||||
iter = view.get_iter_at_location(*buffer_location)
|
||||
if isinstance(iter, tuple):
|
||||
iter = iter[1]
|
||||
cursor = self.standard_cursor
|
||||
ttip = None
|
||||
for (tag, link_type, handle, tooltip) in self._tags:
|
||||
@ -619,6 +621,8 @@ class GuiGramplet(object):
|
||||
int(event.x),
|
||||
int(event.y))
|
||||
iter = view.get_iter_at_location(*buffer_location)
|
||||
if isinstance(iter, tuple):
|
||||
iter = iter[1]
|
||||
for (tag, link_type, handle, tooltip) in self._tags:
|
||||
if iter.has_tag(tag):
|
||||
if link_type == 'Person':
|
||||
|
@ -286,6 +286,8 @@ class StyledTextEditor(Gtk.TextView):
|
||||
x, y = self.window_to_buffer_coords(Gtk.TextWindowType.WIDGET,
|
||||
int(event.x), int(event.y))
|
||||
iter_at_location = self.get_iter_at_location(x, y)
|
||||
if isinstance(iter_at_location, tuple):
|
||||
iter_at_location = iter_at_location[1]
|
||||
self.match = self.textbuffer.match_check(iter_at_location.get_offset())
|
||||
tooltip = None
|
||||
if not self.match:
|
||||
|
Loading…
Reference in New Issue
Block a user