Skip to content
Permalink
Browse files

fix

  • Loading branch information
Sergey Yakushevs
Sergey Yakushevs committed Jun 15, 2011
1 parent b66dfb5 commit 8035161cbbc17e5d3fc7658906af35330d1788cb
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/analysis/network/qgslinevectorlayerdirector.cpp
@@ -335,18 +335,20 @@ void QgsLineVectorLayerDirector::makeGraph( QgsGraphBuilderInterface *builder, c
if ( pointLengthIt != pointLengthMap.end() )
{
QVector< TiePointInfo >::iterator it;
for ( it = pointLengthIt; it - pointLengthMap.begin() > 0; --it )
for ( it = pointLengthIt; it - pointLengthMap.begin() >= 0; --it )
{
if ( it->mFirstPoint == pt1 && it->mLastPoint == pt2 )
{
std::cout << "op1\n";
pointsOnArc[ pt1.sqrDist( it->mTiedPoint ) ] = it->mTiedPoint;
}
}
for ( it = pointLengthIt+1; it != pointLengthMap.end(); ++it )
{
if ( it->mFirstPoint == pt1 && it->mLastPoint == pt2 )
{
pointsOnArc[ pt2.sqrDist( it->mTiedPoint ) ] = it->mTiedPoint;
std::cout << "op2\n";
pointsOnArc[ pt1.sqrDist( it->mTiedPoint ) ] = it->mTiedPoint;
}
}
}

0 comments on commit 8035161

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