From 6ac4fcdbd3af67cc87f9ed36c7cdfde4ab101c95 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sat, 8 Feb 2014 20:06:32 -0500 Subject: [PATCH] remove accidentally shadowing declaration With this in place, the orgSel was always Invalid. --- src/EditMenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EditMenu.cpp b/src/EditMenu.cpp index 25a799a838..2c9e205c49 100644 --- a/src/EditMenu.cpp +++ b/src/EditMenu.cpp @@ -399,7 +399,7 @@ void EditMenu::OnRowValueChanged( EditMenuRow row ) if( !m_StepsTypes.empty() ) // Not first run { ASSERT( (int) m_StepsTypes.size() > m_iSelection[ROW_STEPS_TYPE] ); - StepsType orgSel = m_StepsTypes[m_iSelection[ROW_STEPS_TYPE]]; + orgSel = m_StepsTypes[m_iSelection[ROW_STEPS_TYPE]]; } // The StepsType selection may no longer be valid. Zero it for now.