]> git.sesse.net Git - kdenlive/blobdiff - src/dvdwizardmenu.h
Fix include. fix indent. Minor optimization
[kdenlive] / src / dvdwizardmenu.h
index c0edadb5f0afa55f7f2f1d82483f06c214283595..c4496b2f2411296f175c311a84a2e137a473430d 100644 (file)
@@ -126,8 +126,10 @@ 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);