Changeset 15 for trunk/ruleset.c


Ignore:
Timestamp:
Aug 17, 2008, 5:44:54 PM (6 years ago)
Author:
marius
Message:

adding support for naming ways

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ruleset.c

    r14 r15  
    157157    else if ( 
    158158        strcmp(name, "polygone") == 0 || 
    159         strcmp(name, "line") == 0 
     159        strcmp(name, "line") == 0 || 
     160        strcmp(name, "text") == 0 
    160161    ) { 
    161162        // Create Draw 
     
    171172        else if (strcmp(name, "line") == 0) 
    172173            new->type = LINE; 
     174        else if (strcmp(name, "text") == 0) 
     175            new->type = TEXT; 
    173176 
    174177        while (*atts != NULL) { 
     
    181184                sscanf((char *) *(atts+1),"%f",&new->width); 
    182185            } else if(strcmp((char *) *(atts), "pattern") == 0) { 
    183                 new->pattern = strlist_get(patternStrings,*(atts+1)); 
     186                new->pattern = strlist_get(patternStrings,(char *)*(atts+1)); 
    184187            } else if(strcmp((char *) *(atts), "layer") == 0) { 
    185188                sscanf((char *) *(atts+1),"%hi:%hi", 
Note: See TracChangeset for help on using the changeset viewer.