Skip to content
Permalink
Browse files

fix: Road graph plugin crash qgis when use spatelite as source layer

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15110 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
stopa85
stopa85 committed Jan 31, 2011
1 parent cdf993c commit 55d0c2874f3afdbc031dd6ea1d3ea4c891f6d4fb
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/plugins/roadgraph/linevectorlayerdirector.cpp
@@ -70,8 +70,14 @@ void RgLineVectorLayerDirector::makeGraph( RgGraphBuilder *builder ) const

builder->setSourceCrs( vl->crs() );
QgsAttributeList la;
la.push_back( mDirectionFieldId );
la.push_back( mSpeedFieldId );
if ( mDirectionFieldId != -1 )
{
la.push_back( mDirectionFieldId );
}
if ( mSpeedFieldId != -1 )
{
la.push_back( mSpeedFieldId );
}

SpeedUnit su = SpeedUnit::byName( mSpeedUnitName );

0 comments on commit 55d0c28

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