]> git.sesse.net Git - kdenlive/blobdiff - src/geometryval.cpp
Add combobox to select between hh:mm:ss::ff and frame count in slideshow dialog
[kdenlive] / src / geometryval.cpp
index 4ab9b458b583b36105c9d283e86e4488dc4ca6bc..8b7969677e7e8ed94b38496962ad6675cbd15b68 100644 (file)
@@ -252,7 +252,7 @@ void Geometryval::slotResizeCustom()
     }
     int scale = m_paramRect->rect().width() * 100 / m_profile.width;
     bool ok;
-    scale =  QInputDialog::getInt(this, i18n("Resize..."), i18n("Scale"), scale, 1, 2147483647, 10, &ok);
+    scale =  QInputDialog::getInteger(this, i18n("Resize..."), i18n("Scale"), scale, 1, 2147483647, 10, &ok);
     if (!ok) return;
     m_paramRect->setRect(0, 0, m_profile.width * scale / 100, m_profile.height * scale / 100);
     slotUpdateTransitionProperties();
@@ -467,10 +467,11 @@ void Geometryval::slotUpdateTransitionProperties()
         // no keyframe under cursor
         return;
     }
+    QRectF r = m_paramRect->rect().normalized();
     item.x(m_paramRect->pos().x());
     item.y(m_paramRect->pos().y());
-    item.w(m_paramRect->rect().width());
-    item.h(m_paramRect->rect().height());
+    item.w(r.width());
+    item.h(r.height());
     m_geom->insert(item);
     updateTransitionPath();
     emit parameterChanged();