File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -502,15 +502,14 @@ OGRFeatureH QgsVectorFileWriter::createFeature( QgsFeature& feature )
502
502
if ( fid > std::numeric_limits<int >::max () )
503
503
{
504
504
QgsDebugMsg ( QString ( " feature id %1 too large." ).arg ( fid ) );
505
- }
506
-
507
- OGRErr err = OGR_F_SetFID ( poFeature, static_cast <long >( fid ) );
508
- if ( err != OGRERR_NONE )
509
- {
510
- QgsDebugMsg ( QString ( " Failed to set feature id to %1: %2 (OGR error: %3)" )
511
- .arg ( feature.id () )
512
- .arg ( err ).arg ( CPLGetLastErrorMsg () )
513
- );
505
+ OGRErr err = OGR_F_SetFID ( poFeature, static_cast <long >( fid ) );
506
+ if ( err != OGRERR_NONE )
507
+ {
508
+ QgsDebugMsg ( QString ( " Failed to set feature id to %1: %2 (OGR error: %3)" )
509
+ .arg ( feature.id () )
510
+ .arg ( err ).arg ( CPLGetLastErrorMsg () )
511
+ );
512
+ }
514
513
}
515
514
516
515
// attribute handling
You can’t perform that action at this time.
0 commit comments