]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardmenu.h
Integrate with the required MLT hooks for getting Movit to work.
[kdenlive] / src / dvdwizardmenu.h
index c0edadb5f0afa55f7f2f1d82483f06c214283595..d5daa98964c699b99d8c08a06b92e6db63cfa4da 100644 (file)
@@ -126,15 +126,18 @@ protected:
             DvdScene *sc = static_cast < DvdScene * >(scene());
             newPos.setX(qMax(newPos.x(), 0));
             newPos.setY(qMax(newPos.y(), 0));
-            if (newPos.x() + sceneShape.width() > sc->width()) newPos.setX(sc->width() - sceneShape.width());
-            if (newPos.y() + sceneShape.height() > sc->height()) newPos.setY(sc->height() - sceneShape.height());
+            if (newPos.x() + sceneShape.width() > sc->width())
+                newPos.setX(sc->width() - sceneShape.width());
+            if (newPos.y() + sceneShape.height() > sc->height())
+                newPos.setY(sc->height() - sceneShape.height());
 
             sceneShape.translate(newPos - pos());
             QList<QGraphicsItem*> list = scene()->items(sceneShape, Qt::IntersectsItemShape);
             list.removeAll(this);
             if (!list.isEmpty()) {
                 for (int i = 0; i < list.count(); ++i) {
-                    if (list.at(i)->type() == Type) return pos();
+                    if (list.at(i)->type() == Type)
+                        return pos();
                 }
             }
             return newPos;