Skip to content

Commit

Permalink
Merge pull request #678 from minorua/ogr_init_enc_chk
Browse files Browse the repository at this point in the history
OgrProvider: initial encoding setting check (fix #8167)
  • Loading branch information
borysiasty committed Jun 26, 2013
2 parents afbc9b8 + a13126c commit 2d6c92b
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 2d6c92b

Please sign in to comment.