Skip to content
Permalink
Browse files

Fix crash

  • Loading branch information
m-kuhn committed Aug 5, 2015
1 parent 504863b commit 9508f8bc98fca07aacae67346b477ab416d60659
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/editorwidgets/core/qgseditorwidgetregistry.cpp
@@ -282,9 +282,10 @@ void QgsEditorWidgetRegistry::writeMapLayer( QgsMapLayer* mapLayer, QDomElement&

QDomNode editTypesNode = doc.createElement( "edittypes" );

for ( int idx = 0; idx < vectorLayer->fields().count(); ++idx )
QgsFields fields = vectorLayer->fields();
for ( int idx = 0; idx < fields.count(); ++idx )
{
const QgsField &field = vectorLayer->fields()[ idx ];
const QgsField &field = fields[ idx ];
const QString& widgetType = vectorLayer->editorWidgetV2( idx );
if ( !mWidgetFactories.contains( widgetType ) )
{

0 comments on commit 9508f8b

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