]> git.sesse.net Git - kdenlive/blobdiff - src/guide.cpp
Don't double check max length when resizing clip end
[kdenlive] / src / guide.cpp
index 08e5e9ef26d422eb79ff1de0a0548d19100b475a..0e55e9017ecd30375622b7b51746d79552d24243 100644 (file)
@@ -120,7 +120,7 @@ QRectF Guide::boundingRect() const
 QPainterPath Guide::shape() const
 {
     QPainterPath path;
-    path.addRect(line().x1(), line().y1(), line().x2() - line().x1(), line().y2() - line().y1());
+    path.addRect(line().x1() - pen().widthF() / 2, line().y1(), pen().widthF(), line().y2() - line().y1());
     if (KdenliveSettings::showmarkers()) {
         const QFontMetrics metric = m_view->fontMetrics();
         int height = metric.height();