| Summary: | GeoDataCoordinates::fromString("0.0,1.0e-2", ok) can't convert scientific notation | ||
|---|---|---|---|
| Product: | [Applications] marble | Reporter: | sirop <boris.skegin.de> |
| Component: | general | Assignee: | marble-bugs |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | nienhueser |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | 1.4 (KDE 4.9) | ||
| Platform: | Debian unstable | ||
| OS: | Linux | ||
| Latest Commit: | http://commits.kde.org/marble/237b4d7da0edccdbecdd4a8dbb5d2805778c64ab | Version Fixed/Implemented In: | KDE 4.9.0 / Marble 1.4.0 |
| Sentry Crash Report: | |||
Git commit 237b4d7da0edccdbecdd4a8dbb5d2805778c64ab by Dennis Nienhüser. Committed on 18/05/2012 at 17:37. Pushed by nienhueser into branch 'master'. Handle scientific notation in the simple degree case. M +2 -2 src/lib/geodata/data/GeoDataCoordinates.cpp M +4 -0 tests/TestGeoDataCoordinates.cpp http://commits.kde.org/marble/237b4d7da0edccdbecdd4a8dbb5d2805778c64ab |
Try something like: bool ok; GeoDataCoordinates temp(GeoDataCoordinates::fromString("0.0,1.0e-2", ok)); if(ok==false) qDebug()<<"error"; I checked it several times: GeoDataCoordinates::fromString("0.0,1.0e-2", ok) can't convert scientific notation.