Skip to content

Commit

Permalink
Fix crash in test
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 1, 2020
1 parent 6f9af58 commit 1d5a4a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsvaluemapwidgetwrapper.cpp
Expand Up @@ -79,7 +79,7 @@ void QgsValueMapWidgetWrapper::updateValues( const QVariant &value, const QVaria

if ( mComboBox )
{
if ( mComboBox->findData( v ) == -1 )
if ( mComboBox->findData( v ) == -1 && !( v.startsWith( '(' ) && v.endsWith( ')' ) ) )
{
mComboBox->addItem( v.prepend( '(' ).append( ')' ), v );
}
Expand Down

0 comments on commit 1d5a4a5

Please sign in to comment.