Subversion Repositories wimsdev

Rev

Rev 18109 | Rev 18157 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18109 Rev 18155
Line 6798... Line 6798...
6798
        *yrange="yrange",
6798
        *yrange="yrange",
6799
        *rangex="rangex",
6799
        *rangex="rangex",
6800
        *rangey="rangey",
6800
        *rangey="rangey",
6801
        *path="path",
6801
        *path="path",
6802
        *polyline="polyline",
6802
        *polyline="polyline",
-
 
6803
        *dpolyline="dpolyline",
6803
        *brokenline="brokenline",
6804
        *brokenline="brokenline",
6804
        *lines="lines",
6805
        *lines="lines",
6805
        *poly="poly",
6806
        *poly="poly",
6806
        *polygon="polygon",
6807
        *polygon="polygon",
6807
        *fpolygon="fpolygon",
6808
        *fpolygon="fpolygon",
Line 7010... Line 7011...
7010
        if (c == EOF) {finished=1;return 0;}
7011
        if (c == EOF) {finished=1;return 0;}
7011
 
7012
 
7012
        temp[i]='\0';
7013
        temp[i]='\0';
7013
        input_type=(char*)my_newmem(strlen(temp));
7014
        input_type=(char*)my_newmem(strlen(temp));
7014
        snprintf(input_type,sizeof(temp),"%s",temp);
7015
        snprintf(input_type,sizeof(temp),"%s",temp);
-
 
7016
        /* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */
-
 
7017
        if(strstr(input_type,"dash") !=0 && strlen(input_type) > 4 ){
-
 
7018
            use_dashed = TRUE;int idx=0;
-
 
7019
            for(int p = 4; p < strlen(input_type); p++){temp[idx] = temp[p];idx++;}
-
 
7020
            free(input_type);input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp);
-
 
7021
        }
7015
/* fprintf(stdout,"temp = %s <br/>",input_type); */
7022
/*      fprintf(stdout,"input_type = %s<br/>",input_type);*/
7016
        if( strcmp(input_type, size) == 0 ){
7023
        if( strcmp(input_type, size) == 0 ){
7017
        free(input_type);
7024
        free(input_type);
7018
        return SIZE;
7025
        return SIZE;
7019
        }
7026
        }
7020
        if( strcmp(input_type, range) == 0 ){
7027
        if( strcmp(input_type, range) == 0 ){
Line 7331... Line 7338...
7331
        }
7338
        }
7332
        if( strcmp(input_type, fontfamily) == 0 ){
7339
        if( strcmp(input_type, fontfamily) == 0 ){
7333
        free(input_type);
7340
        free(input_type);
7334
        return FONTFAMILY;
7341
        return FONTFAMILY;
7335
        }
7342
        }
7336
        if( strcmp(input_type, polyline) == 0 ||  strcmp(input_type, path) == 0 || strcmp(input_type, brokenline) == 0 ){
7343
        if( strcmp(input_type, polyline) == 0 ||  strcmp(input_type, dpolyline) == 0 ||  strcmp(input_type, path) == 0 || strcmp(input_type, brokenline) == 0 ){
-
 
7344
        if(strcmp(input_type, dpolyline) == 0 ){use_dashed = TRUE;}
7337
        free(input_type);
7345
        free(input_type);
7338
        return POLYLINE;
7346
        return POLYLINE;
7339
        }
7347
        }
7340
        if( strcmp(input_type, lines) == 0 ){
7348
        if( strcmp(input_type, lines) == 0 ){
7341
        free(input_type);
7349
        free(input_type);