X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fguide.cpp;h=4fbc53b9bbe550177836c0b66b702a18f490894b;hb=7f755f1a7f9f357991b66af8a42e46dfbe7236cd;hp=0e55e9017ecd30375622b7b51746d79552d24243;hpb=f75ea4a40f5d54f408926a82bc56ae289edb03b4;p=kdenlive diff --git a/src/guide.cpp b/src/guide.cpp index 0e55e901..4fbc53b9 100644 --- a/src/guide.cpp +++ b/src/guide.cpp @@ -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 (scene())->scale()); + rect.setWidth(m_width / static_cast (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 (scene())->scale(), height, 3, 3); + path.addRoundedRect(line().x1(), line().y1() + 10, m_width / static_cast (scene())->scale().x(), height, 3, 3); } return path; }