Skip to content
Permalink
Browse files

Fix loss of renderer style after fixing a layer with a bad path

  • Loading branch information
nyalldawson committed Apr 15, 2019
1 parent 36a1277 commit 0362f9d6a74c332e7ef0910cdd3cea3d5b2856c0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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 );

0 comments on commit 0362f9d

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