]> git.lyx.org Git - lyx.git/blobdiff - src/support/Systemcall.cpp
add onoff support for "inset-modify changetype xxx" in include inset
[lyx.git] / src / support / Systemcall.cpp
index 7ca8869c4c5ea525aa6625f7966d9627d2254c9e..e51fc169ca16350259b06a9070ec973b94492788 100644 (file)
@@ -17,6 +17,7 @@
 #include "support/lstrings.h"
 #include "support/qstring_helpers.h"
 #include "support/Systemcall.h"
+#include "support/SystemcallPrivate.h"
 #include "support/os.h"
 
 #include <cstdlib>
@@ -158,7 +159,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();
 }
 
@@ -196,7 +207,7 @@ void ConOut::stdErr()
        }
 }
 
-#include "moc_Systemcall.cpp"
+#include "moc_SystemcallPrivate.cpp"
 #endif
 
 } // namespace support