[vlmc-devel] commit: GraphicsEffectItem: Fix track effects resize ( 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 17:47:35 2010 +0200| [2f87176d0b867c31aca6b1156a806750f65199cd] | committer: Hugo Beauzée-Luyssen
GraphicsEffectItem: Fix track effects resize
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=2f87176d0b867c31aca6b1156a806750f65199cd
---
src/Gui/timeline/GraphicsEffectItem.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/Gui/timeline/GraphicsEffectItem.cpp b/src/Gui/timeline/GraphicsEffectItem.cpp
index 7659692..8d3b7f9 100644
--- a/src/Gui/timeline/GraphicsEffectItem.cpp
+++ b/src/Gui/timeline/GraphicsEffectItem.cpp
@@ -247,6 +247,8 @@ GraphicsEffectItem::maxBegin() const
qint64
GraphicsEffectItem::maxEnd() const
{
+ if ( m_effectHelper->target()->length() <= 0 )
+ return Effect::TrackEffectDefaultLength;
return m_effectHelper->target()->length();
}
More information about the Vlmc-devel
mailing list