Bug 299932 - GeoDataCoordinates::fromString("0.0,1.0e-2", ok) can't convert scientific notation
Summary: GeoDataCoordinates::fromString("0.0,1.0e-2", ok) can't convert scientific not...
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: 1.4 (KDE 4.9)
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 11:24 UTC by sirop
Modified: 2012-05-18 15:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: KDE 4.9.0 / Marble 1.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sirop 2012-05-13 11:24:21 UTC
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.
Comment 1 Dennis Nienhüser 2012-05-18 15:38:55 UTC
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