Fix warning: shadowed wxWindow::IsShown in sim_plot_panel.h

This commit is contained in:
Chris Pavlina
2017-03-19 09:18:28 -04:00
parent bfa22c6ce8
commit ef12f0bcbc
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2016 CERN
* Copyright (C) 2016-2017 KiCad Developers, see AUTHORS.txt for contributors.
* @author Tomasz Wlostowski <[email protected]>
* @author Maciej Suminski <[email protected]>
*
@@ -446,7 +447,7 @@ void SIM_PLOT_FRAME::removePlot( const wxString& aPlotName, bool aErase )
traceMap.erase( traceIt );
}
wxASSERT( plotPanel->IsShown( aPlotName ) );
wxASSERT( plotPanel->TraceShown( aPlotName ) );
plotPanel->DeleteTrace( aPlotName );
plotPanel->Fit();
+1 -1
View File
@@ -197,7 +197,7 @@ public:
void DeleteAllTraces();
bool IsShown( const wxString& aName ) const
bool TraceShown( const wxString& aName ) const
{
return m_traces.count( aName ) > 0;
}