From ff2d0a403ccf5982f428bb908ef3cd9d9e2b806d Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 22 Aug 2008 18:53:00 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 +++ src/gui/automation_editor.cpp | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0632d45344..ac73f4c9b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-08-22 Tobias Doerffel + * 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: diff --git a/src/gui/automation_editor.cpp b/src/gui/automation_editor.cpp index 2a804de742..7ea1016f15 100644 --- a/src/gui/automation_editor.cpp +++ b/src/gui/automation_editor.cpp @@ -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;