Call srcfile() with nothrow, as clearly intended.
parent
15130f6cb0
commit
ab9cb28414
|
@ -233,7 +233,7 @@ sub get_tag_icon($) {
|
|||
my $tag = shift;
|
||||
# look for an icon attached to the tag
|
||||
my $attached = $tag . '/' . $config{'osm_tag_default_icon'};
|
||||
if (srcfile($attached)) {
|
||||
if (srcfile($attached, 1)) {
|
||||
return $attached;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue