Commit ea17bdc3 authored by François Cartegnie's avatar François Cartegnie 🤞

Qt: playlist zoom: Enforce valid font point size

parent 9f5bb6b6
......@@ -370,7 +370,7 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
else if( role == Qt::FontRole )
{
QFont f;
f.setPointSize( f.pointSize() - 1 + i_zoom );
f.setPointSize( std::max( f.pointSize() - 1 + i_zoom, 1 ) );
if( isCurrent( index ) )
f.setBold( true );
return QVariant( f );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment