[vlmc-devel] commit: AbstractGraphicsItem: Do not resize beyond 0 ( even when there is no resize boundary) ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Tue Sep 21 18:48:21 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Sep 21 18:47:44 2010 +0200| [814e62704802ebf2548f0fb4619119b936a12b5f] | committer: Hugo Beauzée-Luyssen 

AbstractGraphicsItem: Do not resize beyond 0 (even when there is no resize boundary)

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

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

diff --git a/src/Gui/timeline/AbstractGraphicsItem.cpp b/src/Gui/timeline/AbstractGraphicsItem.cpp
index 3d404c7..57bee23 100644
--- a/src/Gui/timeline/AbstractGraphicsItem.cpp
+++ b/src/Gui/timeline/AbstractGraphicsItem.cpp
@@ -146,6 +146,8 @@ AbstractGraphicsItem::resize( qint64 newSize, qint64 newMovingBoundary,
     }
     else
     {
+        if ( newMovingBoundary < 0 )
+            return ;
         if ( hasResizeBoundaries() == true )
         {
             qint64      endOffset = maxEnd() - end();



More information about the Vlmc-devel mailing list