Qt: fix compilation on Win32, and use a decent minimum
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 17:44:31 +0000 (19:44 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 7 Sep 2011 17:59:24 +0000 (19:59 +0200)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 5ef8b0f..1985a2d 100644 (file)
@@ -370,7 +370,7 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
     else if( role == Qt::FontRole )
     {
         QFont f;
-        f.setPointSize( std::max( f.pointSize() - 1 + i_zoom, 1 ) );
+        f.setPointSize( __MAX( f.pointSize() - 1 + i_zoom, 4 ) );
         if( isCurrent( index ) )
             f.setBold( true );
         return QVariant( f );