Skip to content

Commit

Permalink
Merge pull request #41312 from stefanuhrig/idxoutofrange
Browse files Browse the repository at this point in the history
Fix index-out-of-range warning
  • Loading branch information
m-kuhn committed Feb 2, 2021
2 parents 334408e + 143536c commit d72a286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsoptionsdialogbase.cpp
Expand Up @@ -116,11 +116,11 @@ void QgsOptionsDialogBase::initOptionsBase( bool restoreUi, const QString &title
if ( buttonBoxFrame )
{
buttonBoxFrame->layout()->setContentsMargins( 0, 0, 0, 0 );
layout->insertWidget( layout->count() + 1, buttonBoxFrame );
layout->insertWidget( layout->count(), buttonBoxFrame );
}
else if ( mOptButtonBox )
{
layout->insertWidget( layout->count() + 1, mOptButtonBox );
layout->insertWidget( layout->count(), mOptButtonBox );
}

if ( mOptButtonBox )
Expand Down

0 comments on commit d72a286

Please sign in to comment.