Don't copy the items being iterated
This commit is contained in:
parent
902e0d0c42
commit
18cd0cdb58
|
@ -65,7 +65,7 @@ void PANEL_COLOR_SETTINGS::OnBtnResetClicked( wxCommandEvent& event )
|
|||
if( !m_currentSettings )
|
||||
return;
|
||||
|
||||
for( const std::pair<int, COLOR_SWATCH*>& pair : m_swatches )
|
||||
for( const std::pair<const int, COLOR_SWATCH*>& pair : m_swatches )
|
||||
{
|
||||
int layer = pair.first;
|
||||
COLOR_SWATCH* button = pair.second;
|
||||
|
|
Loading…
Reference in New Issue