]> git.sesse.net Git - kdenlive/commitdiff
Fix a few more potentially uninitialized uses. Original patch by Ray Lehtiniemi,...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:02:39 +0000 (18:02 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 7 Mar 2009 18:02:39 +0000 (18:02 +0000)
svn path=/trunk/kdenlive/; revision=3111

src/effectstackedit.cpp
src/renderer.cpp

index 2adf966a3b1835037ab59946c965243b4fbf9ad3..05236818274b0386d3cb4b7b3c2f005c346d4797 100644 (file)
@@ -286,7 +286,7 @@ wipeInfo EffectStackEdit::getWipeInfo(QString value) {
     else if (start.startsWith("100%,0")) info.start = RIGHT;
     else if (start.startsWith("0%,100%")) info.start = DOWN;
     else if (start.startsWith("0%,-100%")) info.start = UP;
-    else if (start.startsWith("0%,0%")) info.start = CENTER;
+    else info.start = CENTER;
     if (start.count(':') == 2) info.startTransparency = start.section(':', -1).toInt();
     else info.startTransparency = 100;
 
@@ -294,7 +294,7 @@ wipeInfo EffectStackEdit::getWipeInfo(QString value) {
     else if (end.startsWith("100%,0")) info.end = RIGHT;
     else if (end.startsWith("0%,100%")) info.end = DOWN;
     else if (end.startsWith("0%,-100%")) info.end = UP;
-    else if (end.startsWith("0%,0%")) info.end = CENTER;
+    else info.end = CENTER;
     if (end.count(':') == 2) info.endTransparency = end.section(':', -1).toInt();
     else info.endTransparency = 100;
     return info;
@@ -398,12 +398,14 @@ void EffectStackEdit::collectAllParameters() {
             else if (wp->start_up->isChecked()) info.start = UP;
             else if (wp->start_down->isChecked()) info.start = DOWN;
             else if (wp->start_center->isChecked()) info.start = CENTER;
+            else info.start = LEFT;
             info.startTransparency = wp->start_transp->value();
             if (wp->end_left->isChecked()) info.end = LEFT;
             else if (wp->end_right->isChecked()) info.end = RIGHT;
             else if (wp->end_up->isChecked()) info.end = UP;
             else if (wp->end_down->isChecked()) info.end = DOWN;
             else if (wp->end_center->isChecked()) info.end = CENTER;
+            else info.end = RIGHT;
             info.endTransparency = wp->end_transp->value();
             setValue = getWipeString(info);
         }
index 810944c1cf4b5fd6f314d774b0ca2e9c9cfb69d6..0f8f9312af1ceb65ccc3e029703416ef6b624891 100644 (file)
@@ -428,6 +428,7 @@ void Render::slotSplitView(bool doit) {
                     tmp = "0,50%:50%x50%";
                     break;
                 case 3:
+                default:
                     tmp = "50%,50%:50%x50%";
                     break;
                 }