]> git.lyx.org Git - features.git/commitdiff
Really flush output buffers.
authorEnrico Forestieri <forenr@lyx.org>
Fri, 15 May 2009 09:20:59 +0000 (09:20 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 15 May 2009 09:20:59 +0000 (09:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29675 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/Systemcall.cpp

index 7ca8869c4c5ea525aa6625f7966d9627d2254c9e..058de000d895152f8e545eb630cfe0cbe0404d2a 100644 (file)
@@ -158,7 +158,17 @@ ConOut::ConOut(QProcess * proc) : proc_(proc), outindex_(0), errindex_(0),
 
 ConOut::~ConOut()
 {
+       if (outindex_) {
+               outdata_[outindex_] = '\0';
+               outindex_ = 0;
+               cout << outdata_;
+       }
        cout.flush();
+       if (errindex_) {
+               errdata_[errindex_] = '\0';
+               errindex_ = 0;
+               cerr << errdata_;
+       }
        cerr.flush();
 }