[vlc-commits] Qt: telexFrame: enforce non zero widget pixmap size
Francois Cartegnie
git at videolan.org
Fri Apr 4 18:56:24 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Apr 4 18:55:36 2014 +0200| [22d0f70c5c48a7e132b26984e017aa95a553c872] | committer: Francois Cartegnie
Qt: telexFrame: enforce non zero widget pixmap size
guess for #11146
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=22d0f70c5c48a7e132b26984e017aa95a553c872
---
modules/gui/qt4/components/controller.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index e904820..d85c129 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -619,7 +619,8 @@ QFrame *AbstractController::telexFrame()
/* Contextual & Index Buttons */
QSignalMapper *contextButtonMapper = new QSignalMapper( this );
QToolButton *contextButton = NULL;
- QPixmap iconPixmap( telexOn->minimumHeight(), telexOn->minimumHeight() );
+ int i_iconminsize = __MAX( 16, telexOn->minimumHeight() );
+ QPixmap iconPixmap( i_iconminsize, i_iconminsize );
iconPixmap.fill( Qt::transparent );
QPainter iconPixmapPainter( &iconPixmap );
QRadialGradient iconPixmapPainterGradient( iconPixmap.rect().center(),
More information about the vlc-commits
mailing list