Bug 333669 - Show distance in feet for short distances
Summary: Show distance in feet for short distances
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.8 (KDE 4.13)
Platform: unspecified Linux
: NOR task
Target Milestone: ---
Assignee: Dennis Nienhüser
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-04-21 01:41 UTC by Dennis Nienhüser
Modified: 2014-06-06 16:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2014-04-21 01:41:51 UTC
The file RoutingInstructions.cpp contains the code to generate turn instructions for navigation. For imperial units, short distances appear as 0.0 miles, which is not too helpful. Change it such that if the distance is shorter than 0.1 miles, the distance is shown in feet.

Create a review request for the marble group when done. Add a comment here to claim the task before working on it.
Comment 1 Abhinav Gangwar 2014-04-21 08:04:18 UTC
I would like to do this task
Comment 2 Dennis Nienhüser 2014-06-06 16:10:35 UTC
Git commit a52d5ba5ae05ca7902d95ef379e07f0aacc14663 by Dennis Nienhüser.
Committed on 06/06/2014 at 16:09.
Pushed by nienhueser into branch 'master'.

Show distance in feet for distances smaller than 0.1 miles.

M  +5    -0    src/lib/marble/routing/instructions/RoutingInstruction.cpp

http://commits.kde.org/marble/a52d5ba5ae05ca7902d95ef379e07f0aacc14663
Comment 3 Dennis Nienhüser 2014-06-06 16:11:32 UTC
Git commit 786b5edac83cd92ab6a4876365f1a5414546edbe by Dennis Nienhüser.
Committed on 06/06/2014 at 16:09.
Pushed by nienhueser into branch 'KDE/4.13'.

Show distance in feet for distances smaller than 0.1 miles.
(cherry picked from commit a52d5ba5ae05ca7902d95ef379e07f0aacc14663)

M  +5    -0    src/lib/marble/routing/instructions/RoutingInstruction.cpp

http://commits.kde.org/marble/786b5edac83cd92ab6a4876365f1a5414546edbe