1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-15 10:33:59 +02:00

* Prevent crash in ViewHeader.

This commit is contained in:
Christian Muehlhaeuser
2012-07-04 05:44:07 +02:00
parent f154c2bbcd
commit 3dc624858b

View File

@@ -84,6 +84,8 @@ ViewHeader::checkState()
{
if ( isSectionHidden( i ) )
continue;
if ( i >= m_columnWeights.count() )
break;
double nw = (double)m_parent->width() * m_columnWeights.at( i );
resizeSection( i, qMax( minimumSectionSize(), int( nw - 0.5 ) ) );