Very minor changes. ( changes in clipper are made to avoid coverity minor warnings).

This commit is contained in:
jean-pierre charras
2015-08-25 16:47:09 +02:00
parent 0aa9fad668
commit f67c7fe052
2 changed files with 8 additions and 3 deletions
+2 -3
View File
@@ -980,14 +980,13 @@ void PCB_EDIT_FRAME::ScriptingConsoleEnableDisable( wxCommandEvent& aEvent )
{
wxWindow * pythonPanelFrame = findPythonConsole();
bool pythonPanelShown = false;
bool pythonPanelShown = true;
if( pythonPanelFrame == NULL )
pythonPanelFrame = new PYTHON_CONSOLE_FRAME( this, pythonConsoleNameId() );
else
pythonPanelShown = pythonPanelFrame->IsShown();
pythonPanelShown = ! pythonPanelFrame->IsShown();
pythonPanelShown = ! pythonPanelShown;
pythonPanelFrame->Show( pythonPanelShown );
}