mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-11 16:44:05 +02:00
* Prevent crash in ViewHeader.
This commit is contained in:
@@ -88,6 +88,8 @@ ViewHeader::checkState()
|
|||||||
{
|
{
|
||||||
if ( isSectionHidden( i ) )
|
if ( isSectionHidden( i ) )
|
||||||
continue;
|
continue;
|
||||||
|
if ( i >= m_columnWeights.count() )
|
||||||
|
break;
|
||||||
|
|
||||||
double nw = (double)m_parent->width() * m_columnWeights.at( i );
|
double nw = (double)m_parent->width() * m_columnWeights.at( i );
|
||||||
resizeSection( i, qMax( minimumSectionSize(), int( nw - 0.5 ) ) );
|
resizeSection( i, qMax( minimumSectionSize(), int( nw - 0.5 ) ) );
|
||||||
|
Reference in New Issue
Block a user