Skip to content

Commit

Permalink
Add another TODO bug note
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 26, 2019
1 parent bb42c43 commit 5f848be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/pal/costcalculator.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ void CostCalculator::setCandidateCostFromPolygon( LabelPosition *lp, PalRtree<Fe
return true; return true;
} ); } );


// TODO 4: probably a bug here -- by calling setCost here we discard all existing candidate costs,
// e.g. those determined via conflicts with obstacles
lp->setCost( pCost.getCost() ); lp->setCost( pCost.getCost() );
} }


Expand Down

0 comments on commit 5f848be

Please sign in to comment.