Skip to content
Permalink
Browse files

Merge pull request #678 from minorua/ogr_init_enc_chk

OgrProvider: initial encoding setting check (fix #8167)
  • Loading branch information
borysiasty committed Jun 26, 2013
2 parents afbc9b8 + a13126c commit 2d6c92b82b9ab070282cb073c0a58ebc249b713e
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/providers/ogr/qgsogrprovider.cpp
@@ -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" );
}

0 comments on commit 2d6c92b

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