Fix warning: shadowed wxWindow::IsShown in sim_plot_panel.h
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user