0001-Fix-multi-attribute-editing-in-value-relation-bug-wh.patch

Matthias Kuhn, 2012-08-27 04:49 AM

Download (1.16 KB)

View differences:

src/gui/qgsattributeeditor.cpp
600 600
    if ( editType == QgsVectorLayer::ValueRelation )
601 601
    {
602 602
      text = '{';
603
      int valueCount = 0;
603 604
      for ( int i = 0; i < lw->count(); i++ )
604 605
      {
605 606
        if ( lw->item( i )->checkState() == Qt::Checked )
606 607
        {
607
          if ( i > 0 )
608
          if ( valueCount > 0 )
608 609
          {
609 610
            text.append( ',' );
610 611
          }
611 612
          text.append( lw->item( i )->data( Qt::UserRole ).toString() );
613
          valueCount++;
612 614
        }
613 615
      }
614 616
      text.append( '}' );
615
-