~ubuntu-branches/ubuntu/quantal/marble/quantal

« back to all changes in this revision

Viewing changes to src/lib/geodata/handlers/kml/KmlWestTagHandler.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-05-26 15:14:42 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120526151442-qihwzeki8qlr9ip4
Tags: 4:4.8.80-0ubuntu1
New upstream beta release

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    GeoStackItem parentItem = parser.parentElement();
30
30
 
 
31
    qreal const west = parser.readElementText().trimmed().toDouble();
31
32
    if( parentItem.represents( kmlTag_LatLonAltBox ) ) {
32
 
        float west = parser.readElementText().trimmed().toFloat();
33
 
 
34
33
        parentItem.nodeAs<GeoDataLatLonAltBox>()->setWest( west, GeoDataCoordinates::Degree );
 
34
    } else if( parentItem.represents( kmlTag_LatLonBox ) ) {
 
35
        parentItem.nodeAs<GeoDataLatLonBox>()->setWest( west, GeoDataCoordinates::Degree );
 
36
    }
 
37
 
35
38
#ifdef DEBUG_TAGS
36
39
        mDebug() << "Parsed <" << kmlTag_west << "> containing: " << west
37
40
                 << " parent item name: " << parentItem.qualifiedName().first;
38
41
#endif // DEBUG_TAGS
39
 
    }
40
42
 
41
43
    return 0;
42
44
}