| # | Line 92 | Line 92 | SDloadGeometry(SDData *sd, ezxml_t wdb) | |
|---|---|---|
| 92 | ||
| 93 | if (wdb == NULL) /* no geometry section? */ | |
| 94 | return SDEnone; | |
| 95 | + | if ((geom = ezxml_child(wdb, "Name")) != NULL) { |
| 96 | + | strncpy(sd->matn, ezxml_txt(geom), SDnameLn); |
| 97 | + | sd->matn[SDnameLn-1] = '\0'; |
| 98 | + | } |
| 99 | + | if ((geom = ezxml_child(wdb, "Manufacturer")) != NULL) { |
| 100 | + | strncpy(sd->makr, ezxml_txt(geom), SDnameLn); |
| 101 | + | sd->makr[SDnameLn-1] = '\0'; |
| 102 | + | } |
| 103 | sd->dim[0] = sd->dim[1] = sd->dim[2] = .0; | |
| 104 | SDerrorDetail[0] = '\0'; | |
| 105 | if ((geom = ezxml_child(wdb, "Width")) != NULL) | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |