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

This commit is contained in:
Chris Pavlina 2017-03-19 09:17:33 -04:00
parent bfa22c6ce8
commit ef12f0bcbc
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2016 CERN * Copyright (C) 2016 CERN
* Copyright (C) 2016-2017 KiCad Developers, see AUTHORS.txt for contributors.
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch> * @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* @author Maciej Suminski <maciej.suminski@cern.ch> * @author Maciej Suminski <maciej.suminski@cern.ch>
* *
@ -446,7 +447,7 @@ void SIM_PLOT_FRAME::removePlot( const wxString& aPlotName, bool aErase )
traceMap.erase( traceIt ); traceMap.erase( traceIt );
} }
wxASSERT( plotPanel->IsShown( aPlotName ) ); wxASSERT( plotPanel->TraceShown( aPlotName ) );
plotPanel->DeleteTrace( aPlotName ); plotPanel->DeleteTrace( aPlotName );
plotPanel->Fit(); plotPanel->Fit();

View File

@ -197,7 +197,7 @@ public:
void DeleteAllTraces(); void DeleteAllTraces();
bool IsShown( const wxString& aName ) const bool TraceShown( const wxString& aName ) const
{ {
return m_traces.count( aName ) > 0; return m_traces.count( aName ) > 0;
} }