Bug 299932

Summary: GeoDataCoordinates::fromString("0.0,1.0e-2", ok) can't convert scientific notation
Product: [Applications] marble Reporter: sirop <boris.skegin.de>
Component: generalAssignee: 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: Version Fixed In: KDE 4.9.0 / Marble 1.4.0
Sentry Crash Report:

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