check for exceeding extra settings added

This commit is contained in:
Uwe Rathmann 2019-09-20 07:06:52 +02:00
parent ff5e7574d5
commit 03c7913f18

View File

@ -626,7 +626,15 @@ void QskGridLayoutEngine::setupChain( Qt::Orientation orientation,
const auto& settings = m_data->settings( orientation );
for ( const auto& setting : settings.settings() )
{
if ( setting.position >= chain.count() )
{
qWarning() << "Extra settings for exceeding rows/columns not yet implemented.";
continue;
}
chain.shrinkCell( setting.position, setting.cell() );
}
for ( const auto element : postponed )
{