From 2aa2544e1dfee2c7e9f00f60bce46d5ce8fea790 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Thu, 14 Nov 2013 20:56:50 +0100 Subject: [PATCH] Fix regression of e02df14 (bug #8900) In e02df14 the return type of doExport was changed from bool to ExportStatus. All calls except this one were adjusted. This one did now fail because the numercial value of ExportSuccess is 0. --- src/Buffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 6c320f0359..94b54b9273 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2562,7 +2562,7 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr) break; } - if (!doExport("dvi", true)) { + if (doExport("dvi", true) != ExportSuccess) { showPrintError(absFileName()); dr.setMessage(_("Error exporting to DVI.")); break;