Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* BBBikeMapserver: fix check for empty MultiCoords (this fixes a lot

  of "Probably wrong formatted bbd line" warnings)
  • Loading branch information...
commit b47ddb6c7da5cb87d22676aac9ee80f804a34fc0 1 parent 03e0c67
@eserte authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  BBBikeMapserver.pm
View
2  BBBikeMapserver.pm
@@ -330,7 +330,7 @@ sub create_mapfile {
my $tmpfile1 = $self->{TmpDir} . "/bbbikems-$$.bbd";
open(TMP1, ">$tmpfile1") or die "Can't write to $tmpfile1: $!";
my $dist = 0;
- if ($self->{MultiCoords}) {
+ if (@{ $self->{MultiCoords} || [] }) {
if (!$self->has_more_than_one_coord) {
print TMP1 "\tRoute " . $self->get_first_coord . "\n";
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.