]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix on Bug KERNEL5851
authorsmh <smh@opencascade.com>
Tue, 11 May 2004 05:47:50 +0000 (05:47 +0000)
committersmh <smh@opencascade.com>
Tue, 11 May 2004 05:47:50 +0000 (05:47 +0000)
- V1.4.1 : bug in embedded Python interpretor

src/SALOMEGUI/QAD_PyEditor.cxx

index f344a3b3de3dfd53d6b02050742a694ad4ebc96d..72e22033ea4058816a10fa161458b08d7e9933a5 100644 (file)
@@ -138,6 +138,9 @@ protected:
        anId = QAD_PyEditor::PYTHON_INCOMPLETE;
       myListener->myError = myInterp->getverr().c_str();
       myListener->myOutput = myInterp->getvout().c_str();
+    }else{
+      myListener->myError = "";
+      myListener->myOutput = "";
     }
     QThread::postEvent(myListener, new QCustomEvent(anId));
     QThread::postEvent(myListener, new QCustomEvent(QAD_PyEditor::UNSET_CURSOR));