1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-13 20:39:57 +01:00

* Prevent crash in ViewHeader.

This commit is contained in:
Christian Muehlhaeuser 2012-07-04 05:44:07 +02:00
parent 97a3d6fcd3
commit cd2fd37f84

View File

@ -88,6 +88,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 ) ) );