Make orientation of position marker same as orientation of route if user is on the route itself
ClosedPublic

Authored by sanjibanb on Jul 9 2016, 8:24 PM.

Details

Reviewers
nienhueser
rahn

Diff Detail

Repository
R34 Marble
Lint
Lint Skipped
Unit
Unit Tests Skipped
sanjibanb updated this revision to Diff 5049.Jul 9 2016, 8:24 PM
sanjibanb retitled this revision from to Make orientation of position marker same as orientation of route if user is on the route itself.
sanjibanb updated this object.
sanjibanb edited the test plan for this revision. (Show Details)
sanjibanb added reviewers: nienhueser, rahn.
sanjibanb set the repository for this revision to R34 Marble.
sanjibanb added a project: Marble.
sanjibanb added a subscriber: Marble.
nienhueser added inline comments.Jul 9 2016, 8:33 PM
src/lib/marble/routing/RouteSegment.cpp
211

I think there should be a check at the start of the method that m_path has at least size 2. If not, return 0.

sanjibanb updated this revision to Diff 5050.Jul 9 2016, 8:37 PM

Add check for size of path, before calculating direction.

sanjibanb marked an inline comment as done.Jul 9 2016, 8:37 PM
nienhueser accepted this revision.Jul 9 2016, 8:43 PM
nienhueser edited edge metadata.

Looks great, please push :-)

This revision is now accepted and ready to land.Jul 9 2016, 8:43 PM
sanjibanb closed this revision.Jul 9 2016, 8:47 PM

Thanks! :)