sharkcz / rpms / calibre

Forked from rpms/calibre 4 years ago
Clone
Blob Blame History Raw
From d8b3c132907cd43f323356f8148191e72210f0fc Mon Sep 17 00:00:00 2001
From: Kovid Goyal <kovid@kovidgoyal.net>
Date: Mon, 29 Jul 2019 10:48:54 +0530
Subject: [PATCH 23/71] ...

---
 src/calibre/gui2/tweak_book/editor/text.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/calibre/gui2/tweak_book/editor/text.py b/src/calibre/gui2/tweak_book/editor/text.py
index 9f3208dd1a..86c8739399 100644
--- a/src/calibre/gui2/tweak_book/editor/text.py
+++ b/src/calibre/gui2/tweak_book/editor/text.py
@@ -844,7 +844,7 @@ class TextEdit(PlainTextEdit):
             height = 1600
         c = self.textCursor()
         template, alt = 'url(%s)', ''
-        left = min(c.position(), c.anchor)
+        left = min(c.position(), c.anchor())
         if self.syntax == 'html':
             left, right = self.get_range_inside_tag()
             c.setPosition(left)