Commit 758ebe8b authored by Bernhard Beschow's avatar Bernhard Beschow
Browse files

fix bug introduced in b5d1987f

* found by clang-analyzer
parent 460833fb
......@@ -44,7 +44,7 @@ GeoNode* KmlmemberTagHandler::parse( GeoParser& parser ) const
if( parser.parentElement( 2 ).is<GeoDataPlacemark>() ) {
GeoDataPlacemark *placemark = parser.parentElement( 2 ).nodeAs<GeoDataPlacemark>();
GeoDataPolygon *polygon = geodata_cast<GeoDataPolygon>(placemark->geometry());
if (polygon) {
if (!polygon) {
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment