[vlc-commits] Qt: fix segfault when customizing buttons
Francois Cartegnie
git at videolan.org
Wed Apr 2 20:31:17 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Apr 2 20:30:30 2014 +0200| [4e4d126b20beddc734e2921b087569a399ce894b] | committer: Francois Cartegnie
Qt: fix segfault when customizing buttons
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4e4d126b20beddc734e2921b087569a399ce894b
---
modules/gui/qt4/util/input_slider.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 505b8a1..d947d86 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -400,7 +400,7 @@ void SeekSlider::paintEvent( QPaintEvent *ev )
option.sliderValue = value();
option.maximum = maximum();
option.minimum = minimum();
- foreach( const SeekPoint &point, chapters->getPoints() )
+ if ( chapters ) foreach( const SeekPoint &point, chapters->getPoints() )
option.points << point.time;
QPainter painter( this );
style()->drawComplexControl( QStyle::CC_Slider, &option, &painter, this );
More information about the vlc-commits
mailing list