]> git.sesse.net Git - kdenlive/commitdiff
Cleanup split view
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Sep 2012 19:08:29 +0000 (21:08 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 16 Sep 2012 19:08:29 +0000 (21:08 +0200)
src/renderer.cpp

index b32c7f5680c9584c1c7c5720b221e12974c29be6..47902fcc286173e9bdbd70d60ed21026984f2703 100644 (file)
@@ -534,26 +534,25 @@ void Render::slotSplitView(bool doit)
                 transition->set("b_track", i);
                 transition->set("distort", 1);
                 transition->set("internal_added", "200");
-                const char *tmp;
+                QString geometry;
                 switch (screen) {
                 case 0:
-                    tmp = "0,0:50%x50%";
+                    geometry = "0/0:50%x50%";
                     break;
                 case 1:
-                    tmp = "50%,0:50%x50%";
+                    geometry = "50%/0:50%x50%";
                     break;
                 case 2:
-                    tmp = "0,50%:50%x50%";
+                    geometry = "0/50%:50%x50%";
                     break;
                 case 3:
                 default:
-                    tmp = "50%,50%:50%x50%";
+                    geometry = "50%/50%:50%x50%";
                     break;
                 }
-                transition->set("geometry", tmp);
+                transition->set("geometry", geometry.toUtf8().constData());
                 transition->set("always_active", "1");
                 field->plant_transition(*transition, 0, i);
-                //delete[] tmp;
                 screen++;
             }
         }