Skip to content
Permalink
Browse files

fix #6253

  • Loading branch information
jef-n committed Aug 27, 2012
1 parent 206e488 commit 078f5b846ce3b7740955c6c304d83ad46f386ad0
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgsattributeeditor.cpp
@@ -600,15 +600,16 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
if ( editType == QgsVectorLayer::ValueRelation )
{
text = '{';
for ( int i = 0; i < lw->count(); i++ )
for ( int i = 0, n = 0; i < lw->count(); i++ )
{
if ( lw->item( i )->checkState() == Qt::Checked )
{
if ( i > 0 )
if ( n > 0 )
{
text.append( ',' );
}
text.append( lw->item( i )->data( Qt::UserRole ).toString() );
n++;
}
}
text.append( '}' );

0 comments on commit 078f5b8

Please sign in to comment.
You can’t perform that action at this time.