From 2505c770bb756cacd87b6d6f4a13730b3c142087 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Fri, 25 Apr 2014 23:41:51 +0200 Subject: [PATCH] AutomationEditor: removed useless assertion As suggested by wongcc966422 and others, the assertion at this place is superfluous and just causes unneccessary crashes. Closes #540. --- src/gui/AutomationEditor.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/AutomationEditor.cpp b/src/gui/AutomationEditor.cpp index d6810eee2..b58e49f8b 100644 --- a/src/gui/AutomationEditor.cpp +++ b/src/gui/AutomationEditor.cpp @@ -1597,8 +1597,6 @@ void AutomationEditor::paintEvent( QPaintEvent * _pe ) ++it; } - Q_ASSERT( it == time_map.end()-1 ); - for( int i = it.key(), x = xCoordOfTick( i ); x <= width(); i++, x = xCoordOfTick( i ) ) {