[vlmc-devel] commit: timeline: resize was not possible at some high zoom level ( ticket #85) (Ludovic Fauvet )

git at videolan.org git at videolan.org
Mon Apr 19 11:42:14 CEST 2010


vlmc | branch: master | Ludovic Fauvet <etix at l0cal.com> | Mon Apr 19 11:41:00 2010 +0200| [23ad95fc8c211c2038567fa6659fb43749c88c2c] | committer: Ludovic Fauvet 

timeline: resize was not possible at some high zoom level (ticket #85)

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=23ad95fc8c211c2038567fa6659fb43749c88c2c
---

 src/Gui/timeline/AbstractGraphicsMediaItem.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
index b128f0f..8c39909 100644
--- a/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
+++ b/src/Gui/timeline/AbstractGraphicsMediaItem.cpp
@@ -314,7 +314,7 @@ bool AbstractGraphicsMediaItem::resizeZone( const QPointF& position )
     // Get the current transformation of the view and invert it.
     QTransform transform = tracksView()->transform().inverted();
     // Map the RESIZE_ZONE distance from the view to the item coordinates.
-    QLine line = transform.map( QLine( 0, 0, RESIZE_ZONE, 0 ) );
+    QLineF line = transform.map( QLineF( 0, 0, RESIZE_ZONE, 0 ) );
 
     if ( position.x() < line.x2() ||
          position.x() > ( boundingRect().width() - line.x2() ) )



More information about the Vlmc-devel mailing list