fix problem displaying spots with the standalone program 'showdx'.
[spider.git] / cmd / show / dx.pl
index fd3adeb0c2a9e0520968f81c7c2a6e7b32436f56..17a17d27e3e23e4fa0ec19a0aa092ddbb3699862 100644 (file)
@@ -369,11 +369,11 @@ my @res = Spot::search($expr, $fromday, $today, $from, $to, $hint, $dofilter ? $
 my $ref;
 my @dx;
 foreach $ref (@res) {
-       if ($self->ve7cc) {
+       if ($self && $self->ve7cc) {
                push @out, VE7CC::dx_spot($self, @$ref);
        } else {
                if ($real) {
-                       push @out, $self->format_dx_spot(@$ref);
+                       push @out, DXCommandmode::format_dx_spot($self, @$ref);
                } else {
                        push @out, Spot::formatl(@$ref);
                }