[Marble-commits] KDE/kdeedu/marble/src/lib
Patrick Spendrin
ps_ml at gmx.de
Mon Jul 27 12:23:27 CEST 2009
SVN commit 1002928 by sengels:
forward port r1002926
M +3 -3 MarbleGeometryModel.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleGeometryModel.cpp #1002927:1002928
@@ -132,7 +132,7 @@
}
int size = 0;
- if( reinterpret_cast<GeoDataFeature*>( parentItem ) &&
+ if( dynamic_cast<GeoDataFeature*>( parentItem ) &&
(static_cast<GeoDataFeature*>( parentItem )->featureId() == GeoDataDocumentId ||
static_cast<GeoDataFeature*>( parentItem )->featureId() == GeoDataFolderId ) )
{
@@ -140,7 +140,7 @@
size = folder.features().size();
}
- if( reinterpret_cast<GeoDataFeature*>( parentItem ) &&
+ if( dynamic_cast<GeoDataFeature*>( parentItem ) &&
static_cast<GeoDataFeature*>( parentItem )->featureId() == GeoDataPlacemarkId )
{
/* there is only one GeoDataGeometry Object per Placemark; if Styles
@@ -148,7 +148,7 @@
size = 1;
}
- if( reinterpret_cast<GeoDataGeometry*>( parentItem ) &&
+ if( dynamic_cast<GeoDataGeometry*>( parentItem ) &&
static_cast<GeoDataGeometry*>( parentItem )->geometryId() == GeoDataMultiGeometryId )
{
size = static_cast<GeoDataMultiGeometry*>( parentItem )->size();
More information about the Marble-commits
mailing list