]> git.sesse.net Git - kdenlive/commitdiff
Fix inserting space on 1. track only not possible:
authorTill Theato <root@ttill.de>
Sun, 26 Dec 2010 09:18:45 +0000 (09:18 +0000)
committerTill Theato <root@ttill.de>
Sun, 26 Dec 2010 09:18:45 +0000 (09:18 +0000)
http://kdenlive.org/mantis/view.php?id=1944

svn path=/trunk/kdenlive/; revision=5200

src/customtrackview.cpp

index 3865dd831c0cf1defa768f84103c381091b53a0f..44de178e2f30c5714728a5e8dd28054ba5ffdc25 100644 (file)
@@ -2899,7 +2899,7 @@ void CustomTrackView::slotInsertSpace()
     track = d.selectedTrack();
 
     QList<QGraphicsItem *> items;
-    if (track > 0) {
+    if (track >= 0) {
         if (m_document->isTrackLocked(m_document->tracksCount() - track - 1)) {
             emit displayMessage(i18n("Cannot insert space in a locked track"), ErrorMessage);
             return;