We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd3fe2 commit a364890Copy full SHA for a364890
src/plugins/roadgraph/roadgraphplugin.cpp
@@ -215,7 +215,7 @@ const QgsGraphDirector* RoadGraphPlugin::director() const
215
if ( layer->wkbType() == QGis::WKBLineString
216
|| layer->wkbType() == QGis::WKBMultiLineString )
217
{
218
- QgsVectorDataProvider *provider = dynamic_cast< QgsVectorDataProvider* >( layer->dataProvider() );
+ QgsVectorDataProvider *provider = layer->dataProvider();
219
if ( provider == NULL )
220
return NULL;
221
SpeedUnit speedUnit = SpeedUnit::byName( mSettings->mSpeedUnitName );
0 commit comments