[vlc-commits] Qt: TimeLabel: Use valid constructor for QSize

Francois Cartegnie git at videolan.org
Thu Mar 15 22:08:51 CET 2012


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 15 22:07:37 2012 +0100| [4a9aaa841d61abe623de76f05b15c7760fe14ca3] | committer: Francois Cartegnie

Qt: TimeLabel: Use valid constructor for QSize

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4a9aaa841d61abe623de76f05b15c7760fe14ca3
---

 modules/gui/qt4/components/interface_widgets.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 6f7b80d..b80e525 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -611,7 +611,7 @@ void TimeLabel::setDisplayPosition( float pos, int64_t t, int length )
 
     // compute the minimum size that will be required for the psz_length
     // and use it to enforce a minimal size to avoid "dancing" widgets
-    QSize minsize;
+    QSize minsize( 0, 0 );
     if ( length > 0 )
     {
         QMargins margins = contentsMargins();



More information about the vlc-commits mailing list