]> git.eshelyaron.com Git - emacs.git/commitdiff
Use the correct converter for odf files in doc-view
authorShuguang Sun <shuguang79@qq.com>
Fri, 21 Jan 2022 10:25:27 +0000 (11:25 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Jan 2022 10:25:27 +0000 (11:25 +0100)
* lisp/doc-view.el (doc-view-pdf/ps->png): Use the correct
converter for odf files (bug#53354).

lisp/doc-view.el

index 5b462b24f5ae51a7ca4758791925b55999b73932..5e160f5dff1277901325bf279590d9a2239847a3 100644 (file)
@@ -1189,7 +1189,7 @@ is named like ODF with the extension turned to pdf."
   "Convert PDF-PS to PNG asynchronously."
   (funcall
    (pcase doc-view-doc-type
-     ('pdf doc-view-pdf->png-converter-function)
+     ((or 'pdf 'odf) doc-view-pdf->png-converter-function)
      ('djvu #'doc-view-djvu->tiff-converter-ddjvu)
      (_ #'doc-view-ps->png-converter-ghostscript))
    pdf-ps png nil