From ccf2080ae824095e102e8e21f8216513250bf87a Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 24 Feb 2010 17:02:52 +0000 Subject: [PATCH] Fix bug #6556: Exporting .lyx to .lyx15 or lyx16 report error, yet succeeds. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33557 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 3 ++- src/frontends/qt4/GuiView.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5fc6df0eed..84759a32dc 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1891,9 +1891,10 @@ void Buffer::dispatch(FuncRequest const & func, DispatchResult & dr) setReadonly(!isReadonly()); break; + //FIXME: This is now handled in GuiView case LFUN_BUFFER_EXPORT: { bool success = doExport(argument, false, false); - dr.setError(success); + dr.setError(!success); if (!success) dr.setMessage(bformat(_("Error exporting to format: %1$s."), func.argument())); diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 279384057d..13056eba5c 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -2775,7 +2775,7 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) dr); break; } - if (doc_buffer->doExport(argument, false)) { + if (!doc_buffer->doExport(argument, false)) { dr.setError(true); dr.setMessage(bformat(_("Error exporting to format: %1$s."), cmd.argument())); -- 2.39.2