Skip to content

Commit 0362f9d

Browse files
committedApr 16, 2019
Fix loss of renderer style after fixing a layer with a bad path
1 parent 36a1277 commit 0362f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ void QgsVectorLayer::setDataSource( const QString &dataSource, const QString &ba
14771477

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

14821482
mDataSource = dataSource;
14831483
setName( baseName );

0 commit comments

Comments
 (0)
Please sign in to comment.