mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Highlights: add strikeout style, fix pdf highlights (#8725)
- Add new strikeout highlight style. - Fix highlight style in pdf documents (save_document enabled) not updated when KOReader highlight style changed. - Fix ugly combination of mupdf and KOReader highlights
This commit is contained in:
@@ -239,7 +239,7 @@ function PdfDocument:saveHighlight(pageno, item)
|
||||
elseif item.drawer == "underscore" then
|
||||
annot_type = C.PDF_ANNOT_UNDERLINE
|
||||
elseif item.drawer == "strikeout" then
|
||||
annot_type = C.PDF_ANNOT_STRIKEOUT
|
||||
annot_type = C.PDF_ANNOT_STRIKE_OUT
|
||||
end
|
||||
page:addMarkupAnnotation(quadpoints, n, annot_type) -- may update/adjust quadpoints
|
||||
-- Update pboxes with the possibly adjusted coordinates (this will have it updated
|
||||
|
||||
Reference in New Issue
Block a user