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 e75343a7d8c3e44d12f9076ed335e517e3012ff5
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 e75343a

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