Changeset 7670 in josm for trunk/geticons.pl


Ignore:
Timestamp:
2014-10-29T15:58:35+01:00 (9 years ago)
Author:
stoecker
Message:

remove remaining false icon detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/geticons.pl

    r7669 r7670  
    3535      }
    3636
    37       if($l =~ /(?:icon-image|repeat-image|fill-image)\s*:\s*\"?(.*?)\"?\s*;/)
     37      if(($l =~ /(?:icon-image|repeat-image|fill-image)\s*:\s*(\"?(.*?)\"?)\s*;/) && ($1 ne "none"))
    3838      {
    39         my $img = "styles/standard/$1";
    40         $img = "styles/$1" if((!-f "images/$img") && -f "images/styles/$1");
    41         $img = $1 if((!-f "images/$img") && -f "images/$1");
     39        my $val = $2;
     40        my $img = "styles/standard/$val";
     41        $img = "styles/$val" if((!-f "images/$img") && -f "images/styles/$val");
     42        $img = $val if((!-f "images/$img") && -f "images/$val");
    4243        ++$icons{$img};
    4344      }
Note: See TracChangeset for help on using the changeset viewer.