Fix #10730 (fill ring does not work as expected)

This commit is contained in:
Martin Dobias 2014-06-27 11:51:43 +07:00
parent dd35e6940e
commit fec9e65af5

View File

@ -168,10 +168,7 @@ void QgsMapToolFillRing::canvasReleaseEvent( QMouseEvent * e )
{
QgsAttributeDialog *dialog = new QgsAttributeDialog( vlayer, ft, false, NULL, true );
dialog->setIsAddDialog( true );
if ( dialog->exec() )
{
res = vlayer->addFeature( *ft );
}
res = dialog->exec(); // will also add the feature
}
if ( res )