From: Georg Baum Date: Thu, 14 Nov 2013 19:56:50 +0000 (+0100) Subject: Fix regression of e02df14 (bug #8900) X-Git-Tag: 2.1.0rc1~425 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=2aa2544e1dfee2c7e9f00f60bce46d5ce8fea790;p=features.git 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. --- 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;