Ignore:
Timestamp:
10/24/11 14:42:27 (13 years ago)
Author:
jschierm
Message:

KML: Fixed reading of KML_Point object coordinates (thanks, Eric).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/objects/KML/KML_Point.cpp

    r10256 r10274  
    8080        _printf_(flag,"%s       extrude: %s\n"         ,indent,(extrude ? "true" : "false"));
    8181        _printf_(flag,"%s       altmode: \"%s\"\n"     ,indent,altmode);
    82         _printf_(flag,"%s        coords: (%g,%g,%g)\n" ,coords[0],coords[1],coords[2]);
     82        _printf_(flag,"%s        coords: (%g,%g,%g)\n" ,indent,coords[0],coords[1],coords[2]);
    8383
    8484        return;
     
    109109void  KML_Point::Read(FILE* fid,char* kstr){
    110110
     111        double*      pcoords=&coords[0];
    111112        char*        kstri;
    112113
     
    137138                                                          fid);
    138139                else if (!strcmp(kstri,"<coordinates>"))
    139                         KMLFileTokenParse((double **)&coords    ,NULL       ,3,
     140                        KMLFileTokenParse(&pcoords   ,NULL,3,
    140141                                                          kstri,
    141142                                                          fid);
Note: See TracChangeset for help on using the changeset viewer.