Djelf - 05_Async; fix AsyncProcess
authordimbor <i@dimbor.ru>
Fri, 13 Feb 2015 23:39:37 +0000 (02:39 +0300)
committerdimbor <i@dimbor.ru>
Fri, 13 Feb 2015 23:39:37 +0000 (02:39 +0300)
AsyncProcess.cpp

index 971969a8258e8ca455b03ec1eaee5ae13be6557a..61c2d53cf060d7ec200301da3b9a240f7da0de8a 100644 (file)
@@ -211,7 +211,7 @@ AsyncProcess::Print(const wxString &s, bool doLog)
             ::myLogTrace(MYTRACETAG, wxT("Sending: '%s'"), s.c_str());
         else
             ::myLogTrace(MYTRACETAG, wxT("Sending (hidden): '************'"));
-        wxString sbuf = s + wxT("\n");
+        wxString sbuf = s +  (s.IsEmpty() ? wxT("NullCommand\n") : wxT("\n")) ;
         const wxWX2MBbuf buf = wxConvCurrent->cWX2MB(sbuf);
         os->Write(buf, strlen(buf));
         return true;