From 3ffa13d0aa00f463e134c568c2d52fb03637a108 Mon Sep 17 00:00:00 2001 From: Shuguang Sun Date: Fri, 21 Jan 2022 11:25:27 +0100 Subject: [PATCH] Use the correct converter for odf files in doc-view * lisp/doc-view.el (doc-view-pdf/ps->png): Use the correct converter for odf files (bug#53354). --- lisp/doc-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 5b462b24f5a..5e160f5dff1 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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 -- 2.39.5