fixed selection of all bars via Ctrl+A (closes #2048163)

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1462 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-22 18:53:00 +00:00
parent ee631ad210
commit ff2d0a403c
2 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
2008-08-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/gui/automation_editor.cpp:
fixed selection of all bars via Ctrl+A (closes #2048163)
* plugins/audio_file_processor/audio_file_processor.cpp:
* plugins/audio_file_processor/audio_file_processor.h:
* include/sample_buffer.h:

View File

@@ -1843,14 +1843,11 @@ void automationEditor::selectAll( void )
return;
}
//TODO: Add constant
int len_ticks = 4;
timeMap & time_map = m_pattern->getTimeMap();
timeMap::iterator it = time_map.begin();
m_selectStartTick = 0;
m_selectedTick = it.key() + len_ticks;
m_selectedTick = m_pattern->length();
m_selectStartLevel = it.value();
m_selectedLevels = 1;