Skip to content

Commit

Permalink
show 'unkonwn'instead of '-1' in sublayers dialog (addresses #5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Jun 23, 2012
1 parent 50273b1 commit b6ad69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -485,7 +485,7 @@ QStringList QgsOgrProvider::subLayers() const
default: geom = QString( "Unknown WKB: %1" ).arg( layerGeomType );
}

mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount ).arg( geom );
mSubLayerList << QString( "%1:%2:%3:%4" ).arg( i ).arg( theLayerName ).arg( theLayerFeatureCount == -1 ? tr( "Unknown" ) : QString::number( theLayerFeatureCount ) ).arg( geom );
}

return mSubLayerList;
Expand Down

0 comments on commit b6ad69d

Please sign in to comment.