mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix for tiny selection handle in some circumstances
This commit is contained in:
parent
0319f8325a
commit
1c5fed9e4c
1 changed files with 4 additions and 0 deletions
|
|
@ -86,6 +86,10 @@ def for_boundary(r, ans):
|
|||
for_boundary(end, ans.end)
|
||||
ans.start.is_empty = ans.start.height <= 0
|
||||
ans.end.is_empty = ans.end.height <= 0
|
||||
if ans.end.height is 2 and ans.start.height > 2:
|
||||
ans.end.height = ans.start.height
|
||||
if ans.start.height is 2 and ans.end.height > 2:
|
||||
ans.start.height = ans.end.height
|
||||
return ans
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue