]> git.sesse.net Git - kdenlive/blobdiff - src/guide.cpp
Rewrote correct implementation of vertical timeline zoom
[kdenlive] / src / guide.cpp
index 0e55e9017ecd30375622b7b51746d79552d24243..4fbc53b9bbe550177836c0b66b702a18f490894b 100644 (file)
@@ -111,7 +111,7 @@ QRectF Guide::boundingRect() const
     if (KdenliveSettings::showmarkers()) {
         QRectF rect = QGraphicsLineItem::boundingRect();
         rect.setLeft(line().x1());
-        rect.setWidth(m_width / static_cast <CustomTrackScene*>(scene())->scale());
+        rect.setWidth(m_width / static_cast <CustomTrackScene*>(scene())->scale().x());
         return rect;
     } else return QGraphicsLineItem::boundingRect();
 }
@@ -124,7 +124,7 @@ QPainterPath Guide::shape() const
     if (KdenliveSettings::showmarkers()) {
         const QFontMetrics metric = m_view->fontMetrics();
         int height = metric.height();
-        path.addRoundedRect(line().x1(), line().y1() + 10, m_width / static_cast <CustomTrackScene*>(scene())->scale(), height, 3, 3);
+        path.addRoundedRect(line().x1(), line().y1() + 10, m_width / static_cast <CustomTrackScene*>(scene())->scale().x(), height, 3, 3);
     }
     return path;
 }