Skip to content

Commit

Permalink
OgrProvider: initial encoding setting check (fix #8167)
Browse files Browse the repository at this point in the history
  • Loading branch information
minorua committed Jun 26, 2013
1 parent afbc9b8 commit a13126c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -335,6 +335,9 @@ QgsOgrProvider::QgsOgrProvider( QString const & uri )
ogrLayer = ogrOrigLayer;
if ( ogrLayer )
{
// check that the initial encoding setting is fit for this layer
setEncoding( encoding() );

valid = setSubsetString( mSubsetString );
QgsDebugMsg( "Data source is valid" );
}
Expand Down

0 comments on commit a13126c

Please sign in to comment.