2
0
mirror of https://github.com/koreader/koreader synced 2024-11-16 06:12:56 +00:00

don't clip page images when text is available

This commit is contained in:
chrox 2014-05-16 14:01:47 +08:00
parent a8b7b2cdbd
commit 162b1a69b5

View File

@ -233,7 +233,7 @@ function MyClipping:parseHighlight(highlights, book)
clipping.sort = "highlight"
clipping.time = self:getTime(item.datetime or "")
clipping.text = self:getText(item.text)
if item.pos0 and item.pos1 and
if item.text == "" and item.pos0 and item.pos1 and
item.pos0.x and item.pos0.y and
item.pos1.x and item.pos1.y then
-- highlights in reflowing mode don't have page in pos