Changeset 28690 for trunk/psModules
- Timestamp:
- Jul 19, 2010, 4:05:28 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsStandard.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsStandard.c
r25930 r28690 449 449 int big, medium; 450 450 float small; 451 bool negative = *((char *)concept->data.V) == '-'; // check for sign explicitly since -0 is not less than 0 452 451 453 // XXX: Upgrade path is to allow dd:mm.mmm 452 454 if (sscanf(concept->data.V, "%d:%d:%f", &big, &medium, &small) != 3 && … … 457 459 } 458 460 coords = abs(big) + (float)medium/60.0 + small/3600.0; 459 if ( big < 0)461 if (negative) 460 462 { 461 463 coords *= -1.0;
Note:
See TracChangeset
for help on using the changeset viewer.
