]> git.lyx.org Git - features.git/commitdiff
Fix regression of e02df14 (bug #8900)
authorGeorg Baum <baum@lyx.org>
Thu, 14 Nov 2013 19:56:50 +0000 (20:56 +0100)
committerGeorg Baum <baum@lyx.org>
Thu, 14 Nov 2013 19:56:50 +0000 (20:56 +0100)
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

index 6c320f03597bf9ce7f78d202af23378e97049cda..94b54b9273bcf772e628422c4351866b5c97e887 100644 (file)
@@ -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;