Skip to content

Commit c09ddff

Browse files
authored
Merge pull request abrensch#873 from afischerdev/formatgpx
Added Time element at start
2 parents f80d2e0 + d5fe978 commit c09ddff

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

brouter-core/src/main/java/btools/router/OsmTrack.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,7 @@ int getMinDistance() {
550550
}
551551

552552
public float getVoiceHintTime(int i) {
553-
if (voiceHints.list.isEmpty()) {
554-
return 0f;
555-
}
556-
if (i < voiceHints.list.size()) {
553+
if (!voiceHints.list.isEmpty() && i < voiceHints.list.size()) {
557554
return voiceHints.list.get(i).getTime();
558555
}
559556
if (nodes.isEmpty()) {

0 commit comments

Comments
 (0)