From 50bb56da05d3e18758eda2d74f65972b88002f93 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 1 Feb 2012 17:22:27 +0100 Subject: [PATCH] InstrumentFunction/Arpeggiator: fixed upper loop boundary The upper loop boundary was wrong as the size of a single chord was taken instead of the whole chord table. --- src/core/InstrumentFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/InstrumentFunctions.cpp b/src/core/InstrumentFunctions.cpp index 387a8190c..30c3aef6b 100644 --- a/src/core/InstrumentFunctions.cpp +++ b/src/core/InstrumentFunctions.cpp @@ -315,7 +315,7 @@ Arpeggiator::Arpeggiator( Model * _parent ) : m_arpModeModel( this, tr( "Arpeggio mode" ) ) { const ChordCreator::ChordTable & chord_table = ChordCreator::ChordTable::getInstance(); - for( int i = 0; i < chord_table[i].size(); ++i ) + for( int i = 0; i < chord_table.size(); ++i ) { m_arpModel.addItem( chord_table[i].getName() ); }