mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 19:43:45 +02:00
...
This commit is contained in:
parent
b0e98e0442
commit
a84e622e5f
1 changed files with 2 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ def contains_cursor(self, cursor):
|
|||
if not self.has_tab_stops:
|
||||
return False
|
||||
pos = cursor.position()
|
||||
if self.left_most_cursor.position() <= pos <= self.right_most_cursor.position():
|
||||
if self.left_most_position <= pos <= self.right_most_position:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
@ -272,7 +272,7 @@ def get_active_template(self, cursor):
|
|||
for template in self.active_templates:
|
||||
if at is None and template.contains_cursor(cursor):
|
||||
at = template
|
||||
elif pos > template.right_most_cursor.position() or pos < template.left_most_cursor.position():
|
||||
elif pos > template.right_most_position or pos < template.left_most_position:
|
||||
remove.append(template)
|
||||
for template in remove:
|
||||
self.active_templates.remove(template)
|
||||
|
|
|
|||
Loading…
Reference in a new issue