Skip to content

Commit

Permalink
Fix loss of renderer style after fixing a layer with a bad path
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 16, 2019
1 parent 36a1277 commit 0362f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -1477,7 +1477,7 @@ void QgsVectorLayer::setDataSource( const QString &dataSource, const QString &ba

void QgsVectorLayer::setDataSource( const QString &dataSource, const QString &baseName, const QString &provider, const QgsDataProvider::ProviderOptions &options, bool loadDefaultStyleFlag )
{
QgsWkbTypes::GeometryType geomType = mValid && mDataProvider ? geometryType() : QgsWkbTypes::UnknownGeometry;
QgsWkbTypes::GeometryType geomType = geometryType();

mDataSource = dataSource;
setName( baseName );
Expand Down

0 comments on commit 0362f9d

Please sign in to comment.